1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

PixelPaint: Fix off-by-one in on_second_paint() clip rect

Previously the clip rect did not include the 1px border at the edges
of the rulers.
This commit is contained in:
MacDue 2023-01-26 20:40:10 +00:00 committed by Linus Groh
parent 5e29e04122
commit efb2bed525
2 changed files with 13 additions and 5 deletions

View file

@ -148,6 +148,8 @@ private:
virtual void selection_did_change() override;
Gfx::IntRect subtract_rulers_from_rect(Gfx::IntRect const& rect) const;
GUI::MouseEvent event_adjusted_for_layer(GUI::MouseEvent const&, Layer const&) const;
GUI::MouseEvent event_with_pan_and_scale_applied(GUI::MouseEvent const&) const;