mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 15:56:41 +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
|
bool hit(Gui::Point const at) const
|
||||||
{
|
{
|
||||||
return ptr
|
if (!ptr)
|
||||||
&& Rect(Point(0, 0), size).contains(at)
|
return true;
|
||||||
|
|
||||||
|
return Rect(Point(0, 0), size).contains(at)
|
||||||
&& ptr[size.w*at.y + at.x];
|
&& ptr[size.w*at.y + at.x];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user