From be2b45b2156c1b3eb708df3ae5b991fec7852a7d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Feb 2021 19:01:45 +0100 Subject: [PATCH] LibGfx: Make Painter::draw_physical_pixel() clip with scaling in mind --- Userland/Libraries/LibGfx/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }