From 3ce0613193ca945566ec9ea056d6a67eae7d199c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 14 Feb 2011 19:38:59 +0000 Subject: Constify. svn path=/trunk/netsurf/; revision=11682 --- desktop/textarea.c | 2 +- desktop/textarea.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/textarea.c b/desktop/textarea.c index cb5ce1285..a0dc860ba 100644 --- a/desktop/textarea.c +++ b/desktop/textarea.c @@ -728,7 +728,7 @@ bool textarea_reflow(struct text_area *ta, unsigned int line) * \param y1 bottom Y coordinate of redraw area */ void textarea_redraw(struct text_area *ta, int x, int y, - struct rect *clip) + const struct rect *clip) { int line0, line1, line; int chars, offset, text_y_offset, text_y_offset_baseline; diff --git a/desktop/textarea.h b/desktop/textarea.h index 82c9c2a20..304b1ebfe 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -47,7 +47,7 @@ int textarea_get_text(struct text_area *ta, char *buf, unsigned int len); bool textarea_set_caret(struct text_area *ta, int caret); int textarea_get_caret(struct text_area *ta); void textarea_redraw(struct text_area *ta, int x, int y, - struct rect *clip); + const struct rect *clip); bool textarea_keypress(struct text_area *ta, uint32_t key); bool textarea_mouse_action(struct text_area *ta, browser_mouse_state mouse, int x, int y); -- cgit v1.2.3