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/tree.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/tree.c')
-rwxr-xr-x | amiga/tree.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index 95a68dc20..e3224ff53 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -991,12 +991,15 @@ BOOL ami_tree_event(struct treeview_window *twin) { strlcpy(fname,savereq->fr_Drawer,1024); AddPart(fname,savereq->fr_File,1024); - ami_update_pointer(twin->win,GUI_POINTER_WAIT); + SetWindowPointer(twin->win, + WA_BusyPointer, TRUE, + WA_PointerDelay, TRUE, + TAG_DONE); if(twin->type == AMI_TREE_HISTORY) history_global_export(fname); else if(twin->type == AMI_TREE_HOTLIST) hotlist_export(fname); - ami_update_pointer(twin->win,GUI_POINTER_DEFAULT); + SetWindowPointer(twin->win, TAG_DONE); } break; @@ -1237,9 +1240,12 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data) }; if(!twin->win) return; -// if(tree_get_redraw(twin->tree) == false) return; - ami_update_pointer(twin->win, GUI_POINTER_WAIT); + SetWindowPointer(twin->win, + WA_BusyPointer, TRUE, + WA_PointerDelay, TRUE, + TAG_DONE); + glob = &twin->globals; GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox); @@ -1286,6 +1292,6 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data) } } - ami_update_pointer(twin->win, GUI_POINTER_DEFAULT); + SetWindowPointer(twin->win, TAG_DONE); glob = &browserglob; } |