System/Libraries/Html/Renderer: Increase background_ctx to max size before fill()
This commit is contained in:
parent
dfb73f029c
commit
def7d53101
1 changed files with 2 additions and 0 deletions
|
@ -850,6 +850,8 @@ U0 @render_node_list(@html_dom_node* node, HtmlRenderer* renderer)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!StrICmp(node->tagName, "body")) {
|
if (!StrICmp(node->tagName, "body")) {
|
||||||
|
renderer->background_ctx->width = Display.Width();
|
||||||
|
renderer->background_ctx->height = Display.Height();
|
||||||
renderer->background_ctx->fill(@image_pixel_flip_rgb_bgr(node->backgroundColor));
|
renderer->background_ctx->fill(@image_pixel_flip_rgb_bgr(node->backgroundColor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue