Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet.

This commit is contained in:
Henrik Rydgård 2018-02-07 15:52:19 +01:00
parent 7f30037e45
commit ae19c48138
8 changed files with 130 additions and 123 deletions

View file

@ -189,10 +189,7 @@ void UpdateRunLoop() {
return;
}
NativeUpdate();
if (GetUIState() != UISTATE_EXIT) {
NativeRender(graphicsContext);
}
NativeRender(graphicsContext);
}
void KeepScreenAwake() {
@ -268,6 +265,7 @@ reswitch:
if (GetUIState() != UISTATE_INGAME) {
CoreStateProcessed();
if (GetUIState() == UISTATE_EXIT) {
UpdateRunLoop();
return;
}
Core_RunLoop(ctx);