1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibWeb/Painting: Fix translation for FIllRect command

After 4318bcf447 RecordingPainter
is suppoed to write commands in coordinate system of stacking context.

This commit adds missing translation for FillRect command.
This commit is contained in:
Aliaksandr Kalenik 2023-10-27 17:29:18 +02:00 committed by Andreas Kling
parent f75186ec8f
commit 5ef94f0ba8

View file

@ -37,7 +37,7 @@ void RecordingPainter::blit_corner_clipping(NonnullRefPtr<BorderRadiusCornerClip
void RecordingPainter::fill_rect(Gfx::IntRect const& rect, Color color)
{
push_command(FillRect {
.rect = rect,
.rect = state().translation.map(rect),
.color = color,
});
}