1
Fork 0
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:
Andreas Kling 2020-04-22 00:09:23 +02:00
parent 5326eebb1b
commit ef69f900c7

View file

@ -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()));
}
}