From f8fdd8faac48fb70461885d6800b568484bc05f9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Jul 2011 12:59:47 +0000 Subject: Fix up Windows for r12574 API change. svn path=/trunk/netsurf/; revision=12583 --- windows/gui.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'windows') 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); -- cgit v1.2.3