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

LibGfx: Don't color outside the lines in Painter::draw_physical_pixel()

Fixes #5422.
This commit is contained in:
Andreas Kling 2021-02-22 11:44:57 +01:00
parent e405a8f730
commit 9100a1fde9

View file

@ -1253,6 +1253,7 @@ void Painter::draw_physical_pixel(const IntPoint& physical_position, Color color
}
IntRect rect { physical_position, { thickness, thickness } };
rect.intersect(clip_rect());
fill_physical_rect(rect, color);
}