summaryrefslogtreecommitdiff
path: root/frontends/amiga/theme.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/theme.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/theme.c')
-rw-r--r--frontends/amiga/theme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/amiga/theme.c b/frontends/amiga/theme.c
index 92686fdee..8e2f47059 100644
--- a/frontends/amiga/theme.c
+++ b/frontends/amiga/theme.c
@@ -433,7 +433,7 @@ void gui_window_start_throbber(struct gui_window *g)
{
SetClickTabNodeAttrs(ami_gui_get_tab_node(g), TNA_Flagged, TRUE, TAG_DONE);
RefreshGadgets((APTR)ami_gui_get_gui_window_2(g)->objects[GID_TABS],
- ami_gui_get_gui_window_2(g)->win, NULL);
+ ami_gui_get_window(g), NULL);
}
#endif
@@ -454,7 +454,7 @@ void gui_window_stop_throbber(struct gui_window *g)
{
SetClickTabNodeAttrs(ami_gui_get_tab_node(g), TNA_Flagged, FALSE, TAG_DONE);
RefreshGadgets((APTR)ami_gui_get_gui_window_2(g)->objects[GID_TABS],
- ami_gui_get_gui_window_2(g)->win, NULL);
+ ami_gui_get_window(g), NULL);
}
#endif
@@ -465,7 +465,7 @@ void gui_window_stop_throbber(struct gui_window *g)
}
if(throbber != NULL) {
- BltBitMapRastPort(throbber, 0, 0, ami_gui_get_gui_window_2(g)->win->RPort,
+ BltBitMapRastPort(throbber, 0, 0, ami_gui_get_window(g)->RPort,
bbox->Left, bbox->Top,
ami_theme_throbber_get_width(), ami_theme_throbber_get_height(),
0x0C0);
@@ -508,14 +508,14 @@ static void ami_throbber_update(void *p)
BLITA_Width, ami_theme_throbber_get_width(),
BLITA_Height, ami_theme_throbber_get_height(),
BLITA_Source, throbber,
- BLITA_Dest, ami_gui_get_gui_window_2(g)->win->RPort,
+ BLITA_Dest, ami_gui_get_window(g)->RPort,
BLITA_SrcType, BLITT_BITMAP,
BLITA_DestType, BLITT_RASTPORT,
// BLITA_UseSrcAlpha, TRUE,
TAG_DONE);
#else
BltBitMapRastPort(throbber, ami_theme_throbber_get_width() * frame,
- 0, ami_gui_get_gui_window_2(g)->win->RPort,
+ 0, ami_gui_get_window(g)->RPort,
bbox->Left, bbox->Top,
ami_theme_throbber_get_width(), ami_theme_throbber_get_height(),
0xC0);