mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
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:
parent
d26a8f4997
commit
6b19c6dc26
@ -253,7 +253,7 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
|||||||
SDL_MESSAGEBOX_ERROR,
|
SDL_MESSAGEBOX_ERROR,
|
||||||
"LEGO® Island Error",
|
"LEGO® Island Error",
|
||||||
"\"LEGO® Island\" failed to start. Invalid CLI arguments.",
|
"\"LEGO® Island\" failed to start. Invalid CLI arguments.",
|
||||||
NULL
|
g_isle->GetWindowHandle()
|
||||||
);
|
);
|
||||||
return SDL_APP_FAILURE;
|
return SDL_APP_FAILURE;
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
|||||||
SDL_MESSAGEBOX_ERROR,
|
SDL_MESSAGEBOX_ERROR,
|
||||||
"LEGO® Island Error",
|
"LEGO® Island Error",
|
||||||
"\"LEGO® Island\" failed to start. Please quit all other applications and try again.",
|
"\"LEGO® Island\" failed to start. Please quit all other applications and try again.",
|
||||||
NULL
|
g_isle->GetWindowHandle()
|
||||||
);
|
);
|
||||||
return SDL_APP_FAILURE;
|
return SDL_APP_FAILURE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user