From 5cefc9584a3a33ca750a741f2cc7632003897977 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 13 Feb 2011 23:04:26 +0000 Subject: Pass clip rect to browser_window_redraw as pointer. svn path=/trunk/netsurf/; revision=11672 --- desktop/browser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index 3d5f1a9cb..b8a7818b0 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -90,7 +90,7 @@ static void browser_window_find_target_internal(struct browser_window *bw, /* exported interface, documented in browser.h */ bool browser_window_redraw(struct browser_window *bw, int x, int y, - struct rect clip) + struct rect *clip) { int width = 0; int height = 0; @@ -100,10 +100,10 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, return false; } - plot.clip(clip.x0, clip.y0, clip.x1, clip.y1); + plot.clip(clip->x0, clip->y0, clip->x1, clip->y1); if (bw->current_content == NULL) { - return plot.rectangle(clip.x0, clip.y0, clip.x1, clip.y1, + return plot.rectangle(clip->x0, clip->y0, clip->x1, clip->y1, plot_style_fill_white); } @@ -115,12 +115,12 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, /* Non-HTML may not fill viewport to extents, so plot white * background fill */ - plot.rectangle(clip.x0, clip.y0, clip.x1, clip.y1, + plot.rectangle(clip->x0, clip->y0, clip->x1, clip->y1, plot_style_fill_white); } return content_redraw(bw->current_content, x, y, width, height, - &clip, bw->scale, 0xFFFFFF); + clip, bw->scale, 0xFFFFFF); } /* exported interface, documented in browser.h */ -- cgit v1.2.3