diff options
Diffstat (limited to 'render/html_object.c')
-rw-r--r-- | render/html_object.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/render/html_object.c b/render/html_object.c index f7ed3bd94..e66667b14 100644 --- a/render/html_object.c +++ b/render/html_object.c @@ -293,10 +293,12 @@ html_object_callback(hlcache_handle *object, } else { /* Non-background case */ - int w = content_get_width(object); - int h = content_get_height(object); if (hlcache_handle_get_content(object) == event->data.redraw.object) { + + int w = content_get_width(object); + int h = content_get_height(object); + data.redraw.x = data.redraw.x * box->width / w; data.redraw.y = data.redraw.y * |