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/textarea.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/textarea.c')
-rw-r--r-- | desktop/textarea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/textarea.c b/desktop/textarea.c index a0dc860ba..5450dde64 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -777,7 +777,7 @@ void textarea_redraw(struct text_area *ta, int x, int y, if (r.y1 > y + ta->vis_height) r.y1 = y + ta->vis_height; - plot.clip(r.x0, r.y0, r.x1, r.y1); + plot.clip(&r); plot.rectangle(r.x0, r.y0, r.x1, r.y1, &plot_style_fill_bg); plot.rectangle(x, y, x + ta->vis_width - 1, y + ta->vis_height - 1, @@ -787,7 +787,7 @@ void textarea_redraw(struct text_area *ta, int x, int y, r.x0 = x + MARGIN_LEFT; if (r.x1 > x + ta->vis_width - MARGIN_RIGHT) r.x1 = x + ta->vis_width - MARGIN_RIGHT; - plot.clip(r.x0, r.y0, r.x1, r.y1); + plot.clip(&r); if (line0 > 0) c_pos = utf8_bounded_length(ta->text, |