mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Christian Helmuth
parent
15141f3ca7
commit
807be83b1b
@@ -65,10 +65,10 @@ class Scout::Element
|
||||
/**
|
||||
* Accessor functionse
|
||||
*/
|
||||
Point position() const { return _position; }
|
||||
Area size() const { return _size; }
|
||||
Area min_size() const { return _min_size; }
|
||||
bool is_bottom() const { return _flags.bottom; }
|
||||
Point position() const { return _position; }
|
||||
Area size() const { return _size; }
|
||||
Area min_size() const { return _min_size; }
|
||||
bool bottom() const { return _flags.bottom; }
|
||||
|
||||
void findable(int flag) { _flags.findable = flag; }
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ class Scout::Platform
|
||||
|
||||
void _import_events()
|
||||
{
|
||||
if (_input.is_pending() == false) return;
|
||||
if (_input.pending() == false) return;
|
||||
|
||||
for (int i = 0, num = _input.flush(); i < num; i++)
|
||||
{
|
||||
|
||||
@@ -198,7 +198,7 @@ void Parent_element::geometry(Rect rect)
|
||||
{
|
||||
::Element::geometry(rect);
|
||||
|
||||
if (!_last || !_last->is_bottom()) return;
|
||||
if (!_last || !_last->bottom()) return;
|
||||
|
||||
_last->geometry(Rect(Point(_last->position().x(),
|
||||
rect.h() - _last->size().h()), _last->size()));
|
||||
|
||||
@@ -294,7 +294,7 @@ class Log_session_component : public Genode::Rpc_object<Genode::Log_session>
|
||||
|
||||
Genode::size_t write(String const &log_text)
|
||||
{
|
||||
if (!log_text.is_valid_string()) {
|
||||
if (!log_text.valid_string()) {
|
||||
PERR("corrupted string");
|
||||
return 0;
|
||||
}
|
||||
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
|
||||
unsigned key_cnt = 0;
|
||||
while (1) {
|
||||
|
||||
while (!nitpicker.input()->is_pending()) {
|
||||
while (!nitpicker.input()->pending()) {
|
||||
if (log_window.draw())
|
||||
nitpicker.framebuffer()->refresh(0, 0, log_win_w, log_win_h);
|
||||
timer.msleep(20);
|
||||
|
||||
Reference in New Issue
Block a user