diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-05 22:53:33 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-05 22:54:51 +0000 |
commit | 037beb44fb8f14c80963e54e9b430a0ef03a9d5d (patch) | |
tree | 86a19cc2da29f7aa405126ef4dc17ae7e02855d1 /riscos | |
parent | e8950dee22e82c00dcf48efe2b7125d87776c682 (diff) | |
download | netsurf-037beb44fb8f14c80963e54e9b430a0ef03a9d5d.tar.gz netsurf-037beb44fb8f14c80963e54e9b430a0ef03a9d5d.tar.bz2 |
Pass caret clip rect out to front ends. (Nothing actually using them yet.)
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
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, |