diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-30 11:38:02 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-30 11:38:02 +0100 |
commit | e2fbd3a266fcd33e7d380f45f891eee515b3fc90 (patch) | |
tree | ae0262851074eba6b0a57550d2b7d6fd67b79a89 /desktop/core_window.h | |
parent | b4a3c94cf0c7b775becc8cf2da1137b351a7accb (diff) | |
download | netsurf-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.h | 4 |
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 |