mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
g_closed test in SDL_AppIterate is still needed
This commit is contained in:
parent
42effe8961
commit
7c0c45d630
@ -286,6 +286,9 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
|||||||
|
|
||||||
SDL_AppResult SDL_AppIterate(void* appstate)
|
SDL_AppResult SDL_AppIterate(void* appstate)
|
||||||
{
|
{
|
||||||
|
if (g_closed) {
|
||||||
|
return SDL_APP_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
if (!g_isle->Tick()) {
|
if (!g_isle->Tick()) {
|
||||||
SDL_ShowSimpleMessageBox(
|
SDL_ShowSimpleMessageBox(
|
||||||
@ -299,6 +302,8 @@ SDL_AppResult SDL_AppIterate(void* appstate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!g_closed) {
|
if (!g_closed) {
|
||||||
|
IsleDebug_Render();
|
||||||
|
|
||||||
if (g_reqEnableRMDevice) {
|
if (g_reqEnableRMDevice) {
|
||||||
g_reqEnableRMDevice = FALSE;
|
g_reqEnableRMDevice = FALSE;
|
||||||
VideoManager()->EnableRMDevice();
|
VideoManager()->EnableRMDevice();
|
||||||
@ -306,8 +311,6 @@ SDL_AppResult SDL_AppIterate(void* appstate)
|
|||||||
Lego()->Resume();
|
Lego()->Resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
IsleDebug_Render();
|
|
||||||
|
|
||||||
if (g_closed) {
|
if (g_closed) {
|
||||||
return SDL_APP_SUCCESS;
|
return SDL_APP_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user