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:
Norman Feske 2014-09-10 18:09:44 +02:00
parent 23c22f52b3
commit 83705d3c78

View File

@ -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;
}