From 6d1f480f011a2de630ebe99e68effc725f179ed1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 7 May 2019 21:58:09 +0100 Subject: 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 --- frontends/amiga/drag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/amiga/drag.c') 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; -- cgit v1.2.3