summaryrefslogtreecommitdiff
path: root/desktop/core_window.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-30 11:38:02 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-08-30 11:38:02 +0100
commite2fbd3a266fcd33e7d380f45f891eee515b3fc90 (patch)
treeae0262851074eba6b0a57550d2b7d6fd67b79a89 /desktop/core_window.h
parentb4a3c94cf0c7b775becc8cf2da1137b351a7accb (diff)
downloadnetsurf-e2fbd3a266fcd33e7d380f45f891eee515b3fc90.tar.gz
netsurf-e2fbd3a266fcd33e7d380f45f891eee515b3fc90.tar.bz2
Avoid copying rectangle for redraw_request calls.
Diffstat (limited to 'desktop/core_window.h')
-rw-r--r--desktop/core_window.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/core_window.h b/desktop/core_window.h
index 8af893778..3fe88f3d7 100644
--- a/desktop/core_window.h
+++ b/desktop/core_window.h
@@ -42,7 +42,7 @@ struct core_window_callback_table {
* \param cw the core window object
* \param r rectangle to redraw
*/
- void (*redraw_request)(struct core_window *cw, struct rect r);
+ void (*redraw_request)(struct core_window *cw, const struct rect *r);
/**
* Update the limits of the window
@@ -59,7 +59,7 @@ struct core_window_callback_table {
* \param cw the core window object
* \param r rectangle to make visible
*/
- void (*scroll_visible)(struct core_window *cw, struct rect r);
+ void (*scroll_visible)(struct core_window *cw, const struct rect *r);
/**
* Get window viewport dimensions