Pass SDL_Window handle to SDL_ShowSimpleMessageBox

this makes sure the message dialog is shown as modal dialog and is on top
This commit is contained in:
Anonymous Maarten 2024-12-27 23:59:35 +01:00
parent d26a8f4997
commit 6b19c6dc26

View File

@ -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;
}