From 037beb44fb8f14c80963e54e9b430a0ef03a9d5d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 5 Mar 2013 22:53:33 +0000 Subject: Pass caret clip rect out to front ends. (Nothing actually using them yet.) --- riscos/window.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index 65db88714..591b9bd0b 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -581,7 +581,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, if (ro_toolbar_take_caret(g->toolbar)) ro_gui_url_complete_start(g->toolbar); else - gui_window_place_caret(g, -100, -100, 0); + gui_window_place_caret(g, -100, -100, 0, NULL); return g; } @@ -1125,9 +1125,11 @@ void gui_window_set_search_ico(hlcache_handle *ico) * \param x coordinates of caret * \param y coordinates of caret * \param height height of caret + * \param clip clip rectangle, or NULL if none */ -void gui_window_place_caret(struct gui_window *g, int x, int y, int height) +void gui_window_place_caret(struct gui_window *g, int x, int y, int height, + const struct rect *clip) { os_error *error; @@ -1165,7 +1167,7 @@ void gui_window_remove_caret(struct gui_window *g) return; /* hide caret, but keep input focus */ - gui_window_place_caret(g, -100, -100, 0); + gui_window_place_caret(g, -100, -100, 0, NULL); } @@ -1769,7 +1771,7 @@ bool ro_gui_window_click(wimp_pointer *pointer) /* set input focus */ if (pointer->buttons & (wimp_SINGLE_SELECT | wimp_SINGLE_ADJUST)) - gui_window_place_caret(g, -100, -100, 0); + gui_window_place_caret(g, -100, -100, 0, NULL); if (ro_gui_window_to_window_pos(g, pointer->pos.x, pointer->pos.y, &pos)) browser_window_mouse_click(g->bw, -- cgit v1.2.3