summaryrefslogtreecommitdiff
path: root/desktop/scroll.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-14 17:57:08 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-14 17:57:08 +0000
commitc05333fa62c6dfdd76f20d8a4056bd66f6e9cddd (patch)
tree7f0035c9af11b1e67225d353846e6ec3434fc878 /desktop/scroll.h
parent60c74c2e3c0190313e039fbb77dcd433921a3f72 (diff)
downloadnetsurf-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 'desktop/scroll.h')
-rw-r--r--desktop/scroll.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/scroll.h b/desktop/scroll.h
index 3e15d5f3e..ebca97463 100644
--- a/desktop/scroll.h
+++ b/desktop/scroll.h
@@ -64,8 +64,7 @@ bool scroll_create(bool horizontal, int length,
void *client_data, scroll_client_callback client_callback,
struct scroll **scroll_pt);
void scroll_destroy(struct scroll *scroll);
-bool scroll_redraw(struct scroll *scroll, int x, int y,
- int clip_x0, int clip_y0, int clip_x1, int clip_y1,
+bool scroll_redraw(struct scroll *scroll, int x, int y, struct rect *clip,
float scale);
void scroll_set(struct scroll *scroll, int scroll_val, bool bar);