src/video/windowsrt/SDL_winrtvideo.cpp
changeset 8332 ea83d191cc17
parent 8329 c3047b88e35b
child 8333 49973bfb8d23
equal deleted inserted replaced
8331:737dc8a4f49f 8332:ea83d191cc17
    38 
    38 
    39 #include "SDL_WinRTApp.h"
    39 #include "SDL_WinRTApp.h"
    40 #include "SDL_winrtvideo.h"
    40 #include "SDL_winrtvideo.h"
    41 #include "SDL_winrtevents_c.h"
    41 #include "SDL_winrtevents_c.h"
    42 #include "SDL_winrtframebuffer_c.h"
    42 #include "SDL_winrtframebuffer_c.h"
       
    43 
       
    44 extern SDL_WinRTApp ^ SDL_WinRTGlobalApp;
    43 
    45 
    44 #define WINRTVID_DRIVER_NAME "dummy"
    46 #define WINRTVID_DRIVER_NAME "dummy"
    45 
    47 
    46 /* Initialization/Query functions */
    48 /* Initialization/Query functions */
    47 static int WINRT_VideoInit(_THIS);
    49 static int WINRT_VideoInit(_THIS);
    94 VideoBootStrap WINRT_bootstrap = {
    96 VideoBootStrap WINRT_bootstrap = {
    95     WINRTVID_DRIVER_NAME, "SDL Windows RT video driver",
    97     WINRTVID_DRIVER_NAME, "SDL Windows RT video driver",
    96     WINRT_Available, WINRT_CreateDevice
    98     WINRT_Available, WINRT_CreateDevice
    97 };
    99 };
    98 
   100 
    99 extern SDL_WinRTApp ^ SDL_WinRTGlobalApp;
       
   100 
       
   101 int
   101 int
   102 WINRT_VideoInit(_THIS)
   102 WINRT_VideoInit(_THIS)
   103 {
   103 {
   104     SDL_DisplayMode mode = SDL_WinRTGlobalApp->GetMainDisplayMode();
   104     SDL_DisplayMode mode = SDL_WinRTGlobalApp->GetMainDisplayMode();
   105     if (SDL_AddBasicVideoDisplay(&mode) < 0) {
   105     if (SDL_AddBasicVideoDisplay(&mode) < 0) {