diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 21:49:00 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 21:49:00 +0100 |
commit | 24b910f4ff72b24a871c7d66f9e5f5992625c975 (patch) | |
tree | 119b66b0857d06ba83a0058212098221e65026d5 /frontends/amiga/drag.c | |
parent | a5051c7128ee7ee9b0bc26a81ad7eb3af199d7ca (diff) | |
download | netsurf-24b910f4ff72b24a871c7d66f9e5f5992625c975.tar.gz netsurf-24b910f4ff72b24a871c7d66f9e5f5992625c975.tar.bz2 |
Make the window list more private
TODO: fix arexx.c to not need it
Diffstat (limited to 'frontends/amiga/drag.c')
-rw-r--r-- | frontends/amiga/drag.c | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/frontends/amiga/drag.c b/frontends/amiga/drag.c index 5ae3f25c6..907d8f865 100644 --- a/frontends/amiga/drag.c +++ b/frontends/amiga/drag.c @@ -24,7 +24,6 @@ #include <proto/intuition.h> #include <proto/utility.h> #include <proto/icon.h> -#include <proto/layers.h> #include <graphics/blitattr.h> #include <workbench/icon.h> @@ -109,6 +108,7 @@ void ami_drag_save(struct Window *win) { ULONG which = WBO_NONE, type; char path[1025], dpath[1025]; + struct Screen *scrn = ami_gui_get_screen(); path[0] = 0; /* ensure path is terminated */ @@ -289,44 +289,6 @@ bool ami_drag_has_data(void) else return false; } -static void *ami_find_gwin_by_id(struct Window *win, uint32 type) -{ - struct nsObject *node, *nnode; - struct gui_window_2 *gwin; - - if(!IsMinListEmpty(window_list)) - { - node = (struct nsObject *)GetHead((struct List *)window_list); - - do - { - nnode=(struct nsObject *)GetSucc((struct Node *)node); - - if(node->Type == type) - { - gwin = node->objstruct; - if(win == ami_gui2_get_window(gwin)) return gwin; - } - } while((node = nnode)); - } - return NULL; -} - -void *ami_window_at_pointer(int type) -{ - struct Layer *layer; - struct Screen *scrn = ami_gui_get_screen(); - - LockLayerInfo(&scrn->LayerInfo); - - layer = WhichLayer(&scrn->LayerInfo, scrn->MouseX, scrn->MouseY); - - UnlockLayerInfo(&scrn->LayerInfo); - - if(layer) return ami_find_gwin_by_id(layer->Window, type); - else return NULL; -} - #else #include <stddef.h> @@ -368,10 +330,5 @@ bool ami_drag_has_data(void) { return false; } - -void *ami_window_at_pointer(int type) -{ - return NULL; -} #endif |