diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-07 10:14:13 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-07-07 10:14:13 +0100 |
commit | 67066ce47c1f65ea6ba071068a78c29a7e3b63e5 (patch) | |
tree | 5cf6f680b35ae83acdd860a1ba0d7c73d75cfdc8 | |
parent | de1f0afde282acbf46c03ccba4148974ebf8b210 (diff) | |
download | netsurf-67066ce47c1f65ea6ba071068a78c29a7e3b63e5.tar.gz netsurf-67066ce47c1f65ea6ba071068a78c29a7e3b63e5.tar.bz2 |
Shave a few more px off animated background redraw, in the non-tiled cases. (Restrict area to part of image that changed.)
-rw-r--r-- | render/html_object.c | 12 |
1 files changed, 4 insertions, 8 deletions
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: |