Main loop tweaks
This commit is contained in:
@@ -906,7 +906,7 @@ namespace lime {
|
|||||||
|
|
||||||
if (currentUpdate >= nextUpdate) {
|
if (currentUpdate >= nextUpdate) {
|
||||||
|
|
||||||
SDL_RemoveTimer (timerID);
|
if (timerActive) SDL_RemoveTimer (timerID);
|
||||||
OnTimer (0, 0);
|
OnTimer (0, 0);
|
||||||
|
|
||||||
} else if (!timerActive) {
|
} else if (!timerActive) {
|
||||||
@@ -941,7 +941,7 @@ namespace lime {
|
|||||||
|
|
||||||
int SDLApplication::WaitEvent (SDL_Event *event) {
|
int SDLApplication::WaitEvent (SDL_Event *event) {
|
||||||
|
|
||||||
#ifdef HX_MACOS
|
#if defined(HX_MACOS) || defined(ANDROID)
|
||||||
|
|
||||||
System::GCEnterBlocking ();
|
System::GCEnterBlocking ();
|
||||||
int result = SDL_WaitEvent (event);
|
int result = SDL_WaitEvent (event);
|
||||||
|
|||||||
Reference in New Issue
Block a user