--- hatari/src/gui-sdl/dlgScreen.c 2019/04/01 07:11:57 1.1.1.2 +++ hatari/src/gui-sdl/dlgScreen.c 2019/04/01 07:12:21 1.1.1.3 @@ -4,7 +4,7 @@ This file is distributed under the GNU Public License, version 2 or at your option any later version. Read the file gpl.txt for details. */ -char DlgScreen_rcsid[] = "Hatari $Id: dlgScreen.c,v 1.1.1.2 2019/04/01 07:11:57 root Exp $"; +char DlgScreen_rcsid[] = "Hatari $Id: dlgScreen.c,v 1.1.1.3 2019/04/01 07:12:21 root Exp $"; #include "main.h" #include "configuration.h" @@ -164,7 +164,7 @@ void Dialog_ScreenDlg(void) /* The screen dialog main loop */ do { - but = SDLGui_DoDialog(screendlg); + but = SDLGui_DoDialog(screendlg, NULL); switch( but ) { case DLGSCRN_FPSPOPUP: @@ -189,7 +189,7 @@ void Dialog_ScreenDlg(void) break; } } - while(but!=DLGSCRN_EXIT && !bQuitProgram); + while (but != DLGSCRN_EXIT && but != SDLGUI_QUIT && !bQuitProgram); /* Read new values from dialog: */