diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 22:05:39 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 22:05:39 +0000 |
commit | 94e7b44ebc1710eed0f870428ddb5bfcd85858fa (patch) | |
tree | 2d75845c082051bac12cd41cf2d5139e019c16bf /desktop/history_core.c | |
parent | 3ce0613193ca945566ec9ea056d6a67eae7d199c (diff) | |
download | netsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.gz netsurf-94e7b44ebc1710eed0f870428ddb5bfcd85858fa.tar.bz2 |
Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
svn path=/trunk/netsurf/; revision=11683
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r-- | desktop/history_core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c index ee964ad6d..96a760a9d 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -628,7 +628,12 @@ bool history_redraw_entry(struct history *history, plot_font_style_t fstyle = *plot_style_font; if (clip) { - if(!plot.clip(x0 + xoffset, y0 + yoffset, x1 + xoffset, y1 + yoffset)) + struct rect rect; + rect.x0 = x0 + xoffset; + rect.y0 = y0 + yoffset; + rect.x1 = x1 + xoffset; + rect.y1 = y1 + yoffset; + if(!plot.clip(&rect)) return false; } |