src/video/winrt/SDL_winrtevents.cpp
changeset 8531 d481485a1b85
parent 8522 3ae9dc9c439f
child 8582 c3e9a2b93517
     1.1 --- a/src/video/winrt/SDL_winrtevents.cpp	Mon Sep 16 22:43:12 2013 -0400
     1.2 +++ b/src/video/winrt/SDL_winrtevents.cpp	Sun Sep 22 12:26:53 2013 -0400
     1.3 @@ -33,6 +33,7 @@
     1.4   * SDL includes:
     1.5   */
     1.6  #include "SDL_winrtevents_c.h"
     1.7 +#include "../../core/winrt/SDL_winrtapp_common.h"
     1.8  #include "../../core/winrt/SDL_winrtapp_direct3d.h"
     1.9  #include "../../core/winrt/SDL_winrtapp_xaml.h"
    1.10  #include "SDL_assert.h"
    1.11 @@ -55,7 +56,7 @@
    1.12  {
    1.13      if (SDL_WinRTGlobalApp) {
    1.14          SDL_WinRTGlobalApp->PumpEvents();
    1.15 -    } else if (WINRT_XAMLAppMainFunction) {
    1.16 +    } else if (WINRT_XAMLWasEnabled) {
    1.17          WINRT_YieldXAMLThread();
    1.18      }
    1.19  }
    1.20 @@ -95,7 +96,11 @@
    1.21  static int
    1.22  WINRT_XAMLThreadMain(void * userdata)
    1.23  {
    1.24 -    return WINRT_XAMLAppMainFunction(0, NULL);
    1.25 +    // TODO, WinRT: pass the C-style main() a reasonably realistic
    1.26 +    // representation of command line arguments.
    1.27 +    int argc = 0;
    1.28 +    char **argv = NULL;
    1.29 +    return WINRT_SDLAppEntryPoint(argc, argv);
    1.30  }
    1.31  
    1.32  void