mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibGfx: Make Painter::draw_physical_pixel() clip with scaling in mind
This commit is contained in:
parent
2c3376f9d4
commit
be2b45b215
|
@ -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…
Reference in a new issue