mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
LibWeb: Invalidate the canvas element after put_image_data()
This makes sure we repaint it right away so we can see the changes.
This commit is contained in:
parent
5326eebb1b
commit
ef69f900c7
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ void CanvasRenderingContext2D::put_image_data(const ImageData& image_data, float
|
|||
return;
|
||||
|
||||
painter->blit(Gfx::Point(x, y), image_data.bitmap(), image_data.bitmap().rect());
|
||||
|
||||
did_draw(Gfx::FloatRect(x, y, image_data.width(), image_data.height()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue