From 97010ecef521de524846734e093db89a18f81f62 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 10 May 2019 20:59:30 +0100 Subject: Make screen pointer accesible through an accessor function only --- frontends/amiga/gui_options.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/amiga/gui_options.c') diff --git a/frontends/amiga/gui_options.c b/frontends/amiga/gui_options.c index d35c42b51..c731598e9 100755 --- a/frontends/amiga/gui_options.c +++ b/frontends/amiga/gui_options.c @@ -657,7 +657,7 @@ void ami_gui_opts_open(void) WA_DragBar, TRUE, WA_CloseGadget, TRUE, WA_SizeGadget, FALSE, - WA_PubScreen,scrn, + WA_PubScreen, ami_gui_get_screen(), WINDOW_SharedPort,sport, WINDOW_UserData,gow, WINDOW_IconifyGadget, FALSE, @@ -2109,10 +2109,10 @@ static BOOL ami_gui_opts_event(void *w) case WMHI_GADGETHELP: if((result & WMHI_GADGETMASK) == 0) { /* Pointer not over our window */ - ami_help_open(AMI_HELP_MAIN, scrn); + ami_help_open(AMI_HELP_MAIN, ami_gui_get_screen()); } else { /* TODO: Make this sensitive to the tab the user is currently on */ - ami_help_open(AMI_HELP_PREFS, scrn); + ami_help_open(AMI_HELP_PREFS, ami_gui_get_screen()); } break; -- cgit v1.2.3