Fix update_box coords when issued from scaled iframe.

svn path=/trunk/netsurf/; revision=12573
This commit is contained in:
Michael Drake 2011-07-06 11:58:09 +00:00
parent 5412ae7251
commit 865af5f235
1 changed files with 4 additions and 4 deletions

View File

@ -1202,10 +1202,10 @@ void browser_window_update_box(struct browser_window *bw,
/* TODO: update gui_window_update_box so it takes a struct rect
* instead of msg data. */
data_copy.redraw.x += pos_x;
data_copy.redraw.y += pos_y;
data_copy.redraw.object_x += pos_x;
data_copy.redraw.object_y += pos_y;
data_copy.redraw.x += pos_x / bw->scale;
data_copy.redraw.y += pos_y / bw->scale;
data_copy.redraw.object_x += pos_x / bw->scale;
data_copy.redraw.object_y += pos_y / bw->scale;
gui_window_update_box(top->window, &data_copy);
break;