diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 17:57:08 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-14 17:57:08 +0000 |
commit | c05333fa62c6dfdd76f20d8a4056bd66f6e9cddd (patch) | |
tree | 7f0035c9af11b1e67225d353846e6ec3434fc878 /render/form.c | |
parent | 60c74c2e3c0190313e039fbb77dcd433921a3f72 (diff) | |
download | netsurf-c05333fa62c6dfdd76f20d8a4056bd66f6e9cddd.tar.gz netsurf-c05333fa62c6dfdd76f20d8a4056bd66f6e9cddd.tar.bz2 |
Pass clip rect to scroll_redraw as struct. Simplify test to see if scrollbar is within clip rect.
svn path=/trunk/netsurf/; revision=11679
Diffstat (limited to 'render/form.c')
-rw-r--r-- | render/form.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/render/form.c b/render/form.c index 71a42da4c..8c54b23d5 100644 --- a/render/form.c +++ b/render/form.c @@ -989,6 +989,11 @@ bool form_redraw_select_menu(struct form_control *control, int x, int y, int i; int scroll; int x_cp, y_cp; + struct rect clip; + clip.x0 = clip_x0; + clip.y0 = clip_y0; + clip.x1 = clip_x1; + clip.y1 = clip_y1; box = control->box; @@ -1079,7 +1084,7 @@ bool form_redraw_select_menu(struct form_control *control, int x, int y, if (!scroll_redraw(menu->scroll, x_cp + menu->width - SCROLLBAR_WIDTH, y_cp, - clip_x0, clip_y0, clip_x1, clip_y1, scale)) + &clip, scale)) return false; return true; |