src/video/winrt/SDL_winrtvideo_cpp.h
changeset 8578 6517b6aca713
parent 8545 7cf4f8916997
child 8582 c3e9a2b93517
     1.1 --- a/src/video/winrt/SDL_winrtvideo_cpp.h	Sun Jan 26 08:06:36 2014 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtvideo_cpp.h	Sat Mar 01 16:08:16 2014 -0500
     1.3 @@ -44,9 +44,25 @@
     1.4  /* The global, WinRT, video device. */
     1.5  extern SDL_VideoDevice * WINRT_GlobalSDLVideoDevice;
     1.6  
     1.7 -/* Computes the current display mode for Plain Direct3D (non-XAML) apps */
     1.8 -extern SDL_DisplayMode WINRT_CalcDisplayModeUsingNativeWindow();
     1.9 -
    1.10 +/* Creates a display mode for Plain Direct3D (non-XAML) apps, using the lone, native window's settings.
    1.11 +
    1.12 +   Pass in an allocated SDL_DisplayMode field to store the data in.
    1.13 +
    1.14 +   This function will return 0 on success, -1 on failure.
    1.15 +
    1.16 +   If this function succeeds, be sure to call SDL_free on the
    1.17 +   SDL_DisplayMode's driverdata field.
    1.18 +*/
    1.19 +extern int WINRT_CalcDisplayModeUsingNativeWindow(SDL_DisplayMode * mode);
    1.20 +
    1.21 +/* Duplicates a display mode, copying over driverdata as necessary */
    1.22 +extern int WINRT_DuplicateDisplayMode(SDL_DisplayMode * dest, const SDL_DisplayMode * src);
    1.23 +
    1.24 +/* Display mode internals */
    1.25 +typedef struct
    1.26 +{
    1.27 +    Windows::Graphics::Display::DisplayOrientations currentOrientation;
    1.28 +} SDL_DisplayModeData;
    1.29  
    1.30  #ifdef __cplusplus_winrt
    1.31