summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.c8
-rw-r--r--content/content.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/content/content.c b/content/content.c
index d3fc32388..60996f6a0 100644
--- a/content/content.c
+++ b/content/content.c
@@ -275,10 +275,10 @@ struct handler_entry {
void (*mouse_action)(struct content *c, struct browser_window *bw,
browser_mouse_state mouse, int x, int y);
bool (*redraw)(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour);
bool (*redraw_tiled)(struct content *c, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y);
void (*open)(struct content *c, struct browser_window *bw,
@@ -901,7 +901,7 @@ void content_request_redraw(struct hlcache_handle *h,
*/
bool content_redraw(hlcache_handle *h, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour)
{
struct content *c = hlcache_handle_get_content(h);
@@ -929,7 +929,7 @@ bool content_redraw(hlcache_handle *h, int x, int y,
*/
bool content_redraw_tiled(hlcache_handle *h, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y)
{
diff --git a/content/content.h b/content/content.h
index 1abb40be6..c92fdd4a2 100644
--- a/content/content.h
+++ b/content/content.h
@@ -125,10 +125,10 @@ void content_mouse_track(struct hlcache_handle *h, struct browser_window *bw,
void content_mouse_action(struct hlcache_handle *h, struct browser_window *bw,
browser_mouse_state mouse, int x, int y);
bool content_redraw(struct hlcache_handle *h, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour);
bool content_redraw_tiled(struct hlcache_handle *h, int x, int y,
- int width, int height, struct rect *clip,
+ int width, int height, const struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y);
void content_open(struct hlcache_handle *h, struct browser_window *bw,