System/Libraries/Html/Renderer: Set base context on image load
This commit is contained in:
parent
ec6c463753
commit
04ae4c4055
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue