From fedcbf6656e8d6f082d891c02d6c4555616fd0d6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 11 Feb 2011 19:36:33 +0000 Subject: Pass clip rect to browser_window_redraw as struct. svn path=/trunk/netsurf/; revision=11648 --- windows/gui.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'windows') diff --git a/windows/gui.c b/windows/gui.c index bb0307eba..88f67b682 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -879,18 +879,21 @@ nsws_drawable_mouseup(struct gui_window *gw, static LRESULT nsws_drawable_paint(struct gui_window *gw, HWND hwnd) { + struct rect clip; PAINTSTRUCT ps; plot_hdc = BeginPaint(hwnd, &ps); if (gw != NULL) { + clip.x0 = ps.rcPaint.left; + clip.y0 = ps.rcPaint.top; + clip.x1 = ps.rcPaint.right; + clip.y1 = ps.rcPaint.bottom; + browser_window_redraw(gw->bw, -gw->scrollx / gw->bw->scale, -gw->scrolly / gw->bw->scale, - ps.rcPaint.left, - ps.rcPaint.top, - ps.rcPaint.right, - ps.rcPaint.bottom); + clip); } -- cgit v1.2.3