From 6b19c6dc265f55058c000ddad2e1c5d40d76a4ab Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 27 Dec 2024 23:59:35 +0100 Subject: [PATCH] Pass SDL_Window handle to SDL_ShowSimpleMessageBox this makes sure the message dialog is shown as modal dialog and is on top --- ISLE/isleapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 66f13462..8dc3b065 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -253,7 +253,7 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv) SDL_MESSAGEBOX_ERROR, "LEGO® Island Error", "\"LEGO® Island\" failed to start. Invalid CLI arguments.", - NULL + g_isle->GetWindowHandle() ); return SDL_APP_FAILURE; } @@ -264,7 +264,7 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv) SDL_MESSAGEBOX_ERROR, "LEGO® Island Error", "\"LEGO® Island\" failed to start. Please quit all other applications and try again.", - NULL + g_isle->GetWindowHandle() ); return SDL_APP_FAILURE; }