diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-03 19:53:20 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-03 19:53:20 +0000 |
commit | 07024b05c4be91498245a3066fc3365259acf8bd (patch) | |
tree | 0f3d72734582d9490933abbb4ee9e1cdcaf8a06c /amiga/gui.c | |
parent | dfc2fe6f970b50fc55b00b41e4c178fad2544770 (diff) | |
download | netsurf-07024b05c4be91498245a3066fc3365259acf8bd.tar.gz netsurf-07024b05c4be91498245a3066fc3365259acf8bd.tar.bz2 |
Change the mouse pointer back to what it was (and what NetSurf thinks it is) instead of to the default pointer. Additionally don't use ami_update_pointer for treeview windows as AmigaOS has a pointer setting per window, but NetSurf is only storing the current one as a single global variable.
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 1221a2cc0..0c31c7f68 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1435,7 +1435,7 @@ void ami_handle_msg(void) { ami_context_menu_mouse_trap(gwin, FALSE); - if(!gwin->mouse_state) ami_update_pointer(gwin->win,GUI_POINTER_DEFAULT); + if(!gwin->mouse_state) ami_update_pointer(gwin->win, GUI_POINTER_DEFAULT, false); } break; @@ -3600,6 +3600,7 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, int tile_x_scale = (int)(nsoption_int(redraw_tile_size_x) / gwin->bw->scale); int tile_y_scale = (int)(nsoption_int(redraw_tile_size_y) / gwin->bw->scale); + /* Set the busy pointer. We intentionally don't use ami_update_pointer here. */ SetWindowPointer(gwin->win, WA_BusyPointer, TRUE, WA_PointerDelay, TRUE, @@ -3673,7 +3674,7 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, } } - SetWindowPointer(gwin->win, TAG_DONE); + ami_reset_pointer(gwin->win); } @@ -3851,6 +3852,7 @@ void ami_do_redraw(struct gui_window_2 *gwin) clip.x1 = bbox->Left + bbox->Width; clip.y1 = bbox->Top + bbox->Height; + /* Set the busy pointer. We intentionally don't use ami_update_pointer here. */ SetWindowPointer(gwin->win, WA_BusyPointer, TRUE, WA_PointerDelay, TRUE, @@ -3862,7 +3864,7 @@ void ami_do_redraw(struct gui_window_2 *gwin) browserglob.rp = temprp; } - SetWindowPointer(gwin->win, TAG_DONE); + ami_reset_pointer(gwin->win); } } |