mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibGfx: Don't color outside the lines in Painter::draw_physical_pixel()
Fixes #5422.
This commit is contained in:
parent
e405a8f730
commit
9100a1fde9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue