mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-22 18:32:16 +03:00
Fix scaled html object rendering.
This commit is contained in:
parent
bc8fee46f7
commit
6546098876
@ -667,6 +667,11 @@ bool html_redraw_box(const html_content *html, struct box *box,
|
||||
obj_data.repeat_x = false;
|
||||
obj_data.repeat_y = false;
|
||||
|
||||
if (content_get_type(box->object) == CONTENT_HTML) {
|
||||
obj_data.x /= scale;
|
||||
obj_data.y /= scale;
|
||||
}
|
||||
|
||||
if (!content_redraw(box->object, &obj_data, &r, ctx))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user