Fix Emscripten

This commit is contained in:
Joshua Granick
2015-03-20 07:28:33 -07:00
parent f052d9cd54
commit f1455fa0d7
3 changed files with 9 additions and 1 deletions

View File

@@ -679,7 +679,6 @@ namespace lime {
Window* targetWindow = (Window*)(intptr_t)val_float (window);
targetWindow->Close ();
delete targetWindow;
return alloc_null ();
}

View File

@@ -467,6 +467,13 @@ namespace lime {
}
void SDLApplication::UpdateFrame () {
currentApplication->Update ();
}
void SDLApplication::UpdateFrame (void*) {
currentApplication->Update ();

View File

@@ -40,7 +40,9 @@ namespace lime {
void ProcessTouchEvent (SDL_Event* event);
void ProcessWindowEvent (SDL_Event* event);
static void UpdateFrame ();
static void UpdateFrame (void*);
static SDLApplication* currentApplication;
bool active;