src/video/winrt/SDL_winrtvideo_cpp.h
changeset 8582 c3e9a2b93517
parent 8578 6517b6aca713
child 8615 097646deaef2
     1.1 --- a/src/video/winrt/SDL_winrtvideo_cpp.h	Tue Mar 04 19:49:11 2014 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtvideo_cpp.h	Sun Mar 09 11:06:11 2014 -0700
     1.3 @@ -44,36 +44,36 @@
     1.4  /* The global, WinRT, video device. */
     1.5  extern SDL_VideoDevice * WINRT_GlobalSDLVideoDevice;
     1.6  
     1.7 -/* Creates a display mode for Plain Direct3D (non-XAML) apps, using the lone, native window's settings.
     1.8 -
     1.9 -   Pass in an allocated SDL_DisplayMode field to store the data in.
    1.10 -
    1.11 -   This function will return 0 on success, -1 on failure.
    1.12 -
    1.13 -   If this function succeeds, be sure to call SDL_free on the
    1.14 -   SDL_DisplayMode's driverdata field.
    1.15 -*/
    1.16 -extern int WINRT_CalcDisplayModeUsingNativeWindow(SDL_DisplayMode * mode);
    1.17 -
    1.18 -/* Duplicates a display mode, copying over driverdata as necessary */
    1.19 -extern int WINRT_DuplicateDisplayMode(SDL_DisplayMode * dest, const SDL_DisplayMode * src);
    1.20 -
    1.21 -/* Display mode internals */
    1.22 -typedef struct
    1.23 -{
    1.24 -    Windows::Graphics::Display::DisplayOrientations currentOrientation;
    1.25 +/* Creates a display mode for Plain Direct3D (non-XAML) apps, using the lone, native window's settings.
    1.26 +
    1.27 +   Pass in an allocated SDL_DisplayMode field to store the data in.
    1.28 +
    1.29 +   This function will return 0 on success, -1 on failure.
    1.30 +
    1.31 +   If this function succeeds, be sure to call SDL_free on the
    1.32 +   SDL_DisplayMode's driverdata field.
    1.33 +*/
    1.34 +extern int WINRT_CalcDisplayModeUsingNativeWindow(SDL_DisplayMode * mode);
    1.35 +
    1.36 +/* Duplicates a display mode, copying over driverdata as necessary */
    1.37 +extern int WINRT_DuplicateDisplayMode(SDL_DisplayMode * dest, const SDL_DisplayMode * src);
    1.38 +
    1.39 +/* Display mode internals */
    1.40 +typedef struct
    1.41 +{
    1.42 +    Windows::Graphics::Display::DisplayOrientations currentOrientation;
    1.43  } SDL_DisplayModeData;
    1.44  
    1.45  #ifdef __cplusplus_winrt
    1.46  
    1.47  /* Internal window data */
    1.48 -struct SDL_WindowData
    1.49 -{
    1.50 -    SDL_Window *sdlWindow;
    1.51 -    Platform::Agile<Windows::UI::Core::CoreWindow> coreWindow;
    1.52 -#ifdef SDL_VIDEO_OPENGL_EGL
    1.53 -    EGLSurface egl_surface;
    1.54 -#endif
    1.55 +struct SDL_WindowData
    1.56 +{
    1.57 +    SDL_Window *sdlWindow;
    1.58 +    Platform::Agile<Windows::UI::Core::CoreWindow> coreWindow;
    1.59 +#ifdef SDL_VIDEO_OPENGL_EGL
    1.60 +    EGLSurface egl_surface;
    1.61 +#endif
    1.62  };
    1.63  
    1.64  #endif // ifdef __cplusplus_winrt