mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
nitpicker: fix input-mask offset calculation
The buffer offset was wrongly accounted for. The miscalculation went unnoticed until now because the buffer offset was apparently never used in combination with alpha-channels.
This commit is contained in:
parent
23c22f52b3
commit
83705d3c78
@ -274,7 +274,7 @@ class View : public Same_buffer_list_elem,
|
||||
|
||||
/* if view uses an alpha channel, check the input mask */
|
||||
if ((mode.flat() || _session.xray_no()) && session().uses_alpha())
|
||||
return session().input_mask_at(p - view_rect.p1() + _buffer_off);
|
||||
return session().input_mask_at(p - view_rect.p1() - _buffer_off);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user