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:
parent
f75186ec8f
commit
5ef94f0ba8
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue