summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser.c2
-rw-r--r--desktop/browser.h2
-rw-r--r--desktop/scroll.c9
-rw-r--r--desktop/scroll.h4
4 files changed, 7 insertions, 10 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index b8a7818b0..36661f1de 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)
+ const struct rect *clip)
{
int width = 0;
int height = 0;
diff --git a/desktop/browser.h b/desktop/browser.h
index 59b7d7393..c12f2113c 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -273,7 +273,7 @@ bool browser_window_stop_available(struct browser_window *bw);
* Units for x, y and clip are pixels.
*/
bool browser_window_redraw(struct browser_window *bw, int x, int y,
- struct rect *clip);
+ const struct rect *clip);
/**
* Check whether browser window is ready for redraw
diff --git a/desktop/scroll.c b/desktop/scroll.c
index 19efa8df5..5d7f179ba 100644
--- a/desktop/scroll.c
+++ b/desktop/scroll.c
@@ -196,15 +196,12 @@ static inline bool scroll_redraw_scrollbar_rectangle(
* \param scroll the scroll to be redrawn
* \param x the X coordinate to draw the scroll at
* \param y the Y coordinate to draw the scroll at
- * \param clip_x0 minimum x of the clipping rectangle
- * \param clip_y0 minimum y of the clipping rectangle
- * \param clip_x1 maximum x of the clipping rectangle
- * \param clip_y1 maximum y of the clipping rectangle
+ * \param clip the clipping rectangle
* \param scale scale for the redraw
* \return true on succes false otherwise
*/
-bool scroll_redraw(struct scroll *scroll, int x, int y, struct rect *clip,
- float scale)
+bool scroll_redraw(struct scroll *scroll, int x, int y,
+ const struct rect *clip, float scale)
{
int w = SCROLLBAR_WIDTH;
int well_length, bar_off, bar_c0, bar_c1;
diff --git a/desktop/scroll.h b/desktop/scroll.h
index ebca97463..e34ebba6b 100644
--- a/desktop/scroll.h
+++ b/desktop/scroll.h
@@ -64,8 +64,8 @@ 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, struct rect *clip,
- float scale);
+bool scroll_redraw(struct scroll *scroll, int x, int y,
+ const struct rect *clip, float scale);
void scroll_set(struct scroll *scroll, int scroll_val, bool bar);
int scroll_get_offset(struct scroll *scroll);