--- hatari/src/gui-sdl/dlgAlert.c 2019/04/01 07:11:58 1.1.1.1 +++ hatari/src/gui-sdl/dlgAlert.c 2019/04/01 07:12:23 1.1.1.2 @@ -14,18 +14,15 @@ * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with ARAnyM; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * GNU General Public License (gpl.txt) for more details. */ -char DlgAlert_rcsid[] = "Hatari $Id: dlgAlert.c,v 1.1.1.1 2019/04/01 07:11:58 root Exp $"; +char DlgAlert_rcsid[] = "Hatari $Id: dlgAlert.c,v 1.1.1.2 2019/04/01 07:12:23 root Exp $"; #include #include "main.h" #include "dialog.h" +#include "screen.h" #include "sdlgui.h" @@ -136,13 +133,14 @@ static int DlgAlert_ShowDlg(const char * free(orig_t); - SDLGui_PrepareFont(); + if (SDLGui_SetScreen(sdlscrn)) + return FALSE; SDLGui_CenterDlg(alertdlg); bOldMouseVisibility = SDL_ShowCursor(SDL_QUERY); SDL_ShowCursor(SDL_ENABLE); - i = SDLGui_DoDialog(alertdlg); + i = SDLGui_DoDialog(alertdlg, NULL); SDL_ShowCursor(bOldMouseVisibility);