diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-22 19:01:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-22 21:46:39 +0100 |
commit | be2b45b2156c1b3eb708df3ae5b991fec7852a7d (patch) | |
tree | 5330a5c457a427a0cea69fff7c8b1a0d7b270f57 /Userland | |
parent | 2c3376f9d45667cb02888df9f45c5fbec88e7965 (diff) | |
download | serenity-be2b45b2156c1b3eb708df3ae5b991fec7852a7d.zip |
LibGfx: Make Painter::draw_physical_pixel() clip with scaling in mind
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/Painter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 295e9897f1..ed075d8381 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -1253,7 +1253,7 @@ void Painter::draw_physical_pixel(const IntPoint& physical_position, Color color } IntRect rect { physical_position, { thickness, thickness } }; - rect.intersect(clip_rect()); + rect.intersect(clip_rect() * scale()); fill_physical_rect(rect, color); } |