summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-13 23:04:26 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-13 23:04:26 +0000
commit5cefc9584a3a33ca750a741f2cc7632003897977 (patch)
treea2dbde1bdd3912038296f01684a33153d8757a06 /desktop/browser.c
parentbdfda9d14604daaa01535e744f4d4410550cfead (diff)
downloadnetsurf-5cefc9584a3a33ca750a741f2cc7632003897977.tar.gz
netsurf-5cefc9584a3a33ca750a741f2cc7632003897977.tar.bz2
Pass clip rect to browser_window_redraw as pointer.
svn path=/trunk/netsurf/; revision=11672
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c10
1 files changed, 5 insertions, 5 deletions
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 */