Fix scaled html object rendering.

This commit is contained in:
Michael Drake 2012-08-22 22:48:44 +01:00
parent bc8fee46f7
commit 6546098876

View File

@ -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;