mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
test/nitpicker: fix interaction in non-alpha mode
Commit "gui_session,nitpicker,testnit: update coding style" broke the user-input handling of the test when configured w/o alpha.
This commit is contained in:
parent
d40f9b712e
commit
89446084f3
@ -149,8 +149,10 @@ class Test::View_stack : Noncopyable
|
||||
*/
|
||||
bool hit(Gui::Point const at) const
|
||||
{
|
||||
return ptr
|
||||
&& Rect(Point(0, 0), size).contains(at)
|
||||
if (!ptr)
|
||||
return true;
|
||||
|
||||
return Rect(Point(0, 0), size).contains(at)
|
||||
&& ptr[size.w*at.y + at.x];
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user