From 67066ce47c1f65ea6ba071068a78c29a7e3b63e5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 7 Jul 2013 10:14:13 +0100 Subject: Shave a few more px off animated background redraw, in the non-tiled cases. (Restrict area to part of image that changed.) --- render/html_object.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'render/html_object.c') diff --git a/render/html_object.c b/render/html_object.c index 0868ce365..f7ed3bd94 100644 --- a/render/html_object.c +++ b/render/html_object.c @@ -259,23 +259,19 @@ html_object_callback(hlcache_handle *object, case CSS_BACKGROUND_REPEAT_REPEAT_X: data.redraw.x = 0; - data.redraw.y = t; + data.redraw.y += t; data.redraw.width = box->width; - data.redraw.height = h; break; case CSS_BACKGROUND_REPEAT_REPEAT_Y: - data.redraw.x = l; + data.redraw.x += l; data.redraw.y = 0; - data.redraw.width = w; data.redraw.height = box->height; break; case CSS_BACKGROUND_REPEAT_NO_REPEAT: - data.redraw.x = l; - data.redraw.y = t; - data.redraw.width = w; - data.redraw.height = h; + data.redraw.x += l; + data.redraw.y += t; break; default: -- cgit v1.2.3