System/Libraries/Html/Renderer: Set base context on image load

This commit is contained in:
Alec Murphy 2025-05-03 18:27:54 -04:00
parent ec6c463753
commit 04ae4c4055

View file

@ -2169,6 +2169,7 @@ U0 @fetch_images_for_page(HtmlRenderer* renderer)
// FIXME: Wire up animated GIF handling // FIXME: Wire up animated GIF handling
widget->ctx = @image_buffer_to_context2d(resp->body.data, resp->body.length); widget->ctx = @image_buffer_to_context2d(resp->body.data, resp->body.length);
widget->base = widget->ctx;
if (widget->ctx) { if (widget->ctx) {
widget->width = widget->ctx->width; widget->width = widget->ctx->width;
widget->height = widget->ctx->height; widget->height = widget->ctx->height;