summaryrefslogtreecommitdiff
path: root/frontends/amiga/gui.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/gui.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/gui.c')
-rw-r--r--frontends/amiga/gui.c6
1 files changed, 6 insertions, 0 deletions
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)
{