diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-06 12:59:47 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-06 12:59:47 +0000 |
commit | f8fdd8faac48fb70461885d6800b568484bc05f9 (patch) | |
tree | 7759656c9500c5b912f70659288fc190f7b46806 /windows/gui.c | |
parent | b9544e7e5dbe5f7c6a9103eb61f11895ede13466 (diff) | |
download | netsurf-f8fdd8faac48fb70461885d6800b568484bc05f9.tar.gz netsurf-f8fdd8faac48fb70461885d6800b568484bc05f9.tar.bz2 |
Fix up Windows for r12574 API change.
svn path=/trunk/netsurf/; revision=12583
Diffstat (limited to 'windows/gui.c')
-rw-r--r-- | windows/gui.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/windows/gui.c b/windows/gui.c index 645a4934a..d0c6eec50 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -1424,8 +1424,7 @@ void gui_window_redraw_window(struct gui_window *gw) RedrawWindow(gw->drawingarea, NULL, NULL, RDW_INVALIDATE | RDW_NOERASE); } -void gui_window_update_box(struct gui_window *gw, - const union content_msg_data *data) +void gui_window_update_box(struct gui_window *gw, const struct rect *rect) { /* LOG(("gw:%p %f,%f %f,%f", gw, data->redraw.x, data->redraw.y, data->redraw.width, data->redraw.height)); */ @@ -1434,10 +1433,10 @@ void gui_window_update_box(struct gui_window *gw, RECT redrawrect; - redrawrect.left = (long)data->redraw.x - (gw->scrollx / gw->bw->scale); - redrawrect.top = (long)data->redraw.y - (gw->scrolly / gw->bw->scale); - redrawrect.right =(long)(data->redraw.x + data->redraw.width); - redrawrect.bottom = (long)(data->redraw.y + data->redraw.height); + redrawrect.left = (long)rect->x0 - (gw->scrollx / gw->bw->scale); + redrawrect.top = (long)rect->y0 - (gw->scrolly / gw->bw->scale); + redrawrect.right =(long)rect->x1; + redrawrect.bottom = (long)rect->y1; RedrawWindow(gw->drawingarea, &redrawrect, NULL, RDW_INVALIDATE | RDW_NOERASE); |