mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibGfx: Make Painter::draw_physical_pixel() clip with scaling in mind
This commit is contained in:
parent
2c3376f9d4
commit
be2b45b215
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue