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/gui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'frontends/amiga/gui.c') diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 09de9d4e3..0c2944c0a 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -349,6 +349,12 @@ void ami_gui_set_throbbing(struct gui_window *gw, bool throbbing) gw->throbbing = throbbing; } +struct Window *ami_gui_get_window(struct gui_window *gw) +{ + assert(gw != NULL); + assert(gw->shared != NULL); + return gw->shared->win; +} STRPTR ami_locale_langs(int *codeset) { -- cgit v1.2.3