summaryrefslogtreecommitdiff
path: root/frontends/amiga/drag.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-07 21:58:09 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2019-05-07 21:58:09 +0100
commit6d1f480f011a2de630ebe99e68effc725f179ed1 (patch)
treef43f32ff19a044cc75f16becd36b8c8a3ba9ec84 /frontends/amiga/drag.c
parent5c7b5476f0739e5f62071800830b7600a64a3dd5 (diff)
downloadnetsurf-6d1f480f011a2de630ebe99e68effc725f179ed1.tar.gz
netsurf-6d1f480f011a2de630ebe99e68effc725f179ed1.tar.bz2
Get the shared window's window structure directly from the gui_window
In a lot of places gui_window_2 was only being accessed for Window
Diffstat (limited to 'frontends/amiga/drag.c')
-rw-r--r--frontends/amiga/drag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/amiga/drag.c b/frontends/amiga/drag.c
index 0555001b2..c022a9c3a 100644
--- a/frontends/amiga/drag.c
+++ b/frontends/amiga/drag.c
@@ -89,7 +89,7 @@ void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c,
break;
}
- ami_drag_icon_show(ami_gui_get_gui_window_2(g)->win, filetype);
+ ami_drag_icon_show(ami_gui_get_window(g), filetype);
drag_save_data = c;
drag_save_gui = g;
@@ -98,7 +98,7 @@ void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c,
void gui_drag_save_selection(struct gui_window *g, const char *selection)
{
- ami_drag_icon_show(ami_gui_get_gui_window_2(g)->win, "ascii");
+ ami_drag_icon_show(ami_gui_get_window(g), "ascii");
ami_autoscroll = true;
drag_save_data = g;