diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:59:04 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:59:04 +0100 |
commit | 1cd30fdb3c1f163beceb0bde7485c10a886de531 (patch) | |
tree | 657b47045eb0fc6e563edf0db1ba423dce0d570b /frontends/amiga/gui.c | |
parent | ae36d35728f8622396faba7aeb58434aff2d0331 (diff) | |
download | netsurf-1cd30fdb3c1f163beceb0bde7485c10a886de531.tar.gz netsurf-1cd30fdb3c1f163beceb0bde7485c10a886de531.tar.bz2 |
Move ami_(re)set_pointer (back?) into gui.c as they need to set/read the gui_window_2 structure
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 2132a2408..64e152478 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -452,9 +452,6 @@ struct form_control *ami_gui_get_control(struct gui_window *gw) return gw->control; } -/** - * Set control (for select menu) to gui_window - */ void ami_gui_set_control(struct gui_window *gw, struct form_control *control) { assert(gw != NULL); @@ -462,6 +459,22 @@ void ami_gui_set_control(struct gui_window *gw, struct form_control *control) } +/** undocumented, or internal, or documented elsewhere **/ + +void ami_set_pointer(struct gui_window_2 *gwin, gui_pointer_shape shape, bool update) +{ + if(gwin->mouse_pointer == shape) return; + ami_update_pointer(ami_gui2_get_window(gwin), shape); + if(update == true) gwin->mouse_pointer = shape; +} + +/* reset the mouse pointer back to what NetSurf last set it as */ +void ami_reset_pointer(struct gui_window_2 *gwin) +{ + ami_update_pointer(ami_gui2_get_window(gwin), gwin->mouse_pointer); +} + + STRPTR ami_locale_langs(int *codeset) { struct Locale *locale; |