src/video/winrt/SDL_winrtvideo_cpp.h
changeset 8755 f2fc45874b9c
parent 8664 565698ab1c40
child 9619 b94b6d0bff0f
     1.1 --- a/src/video/winrt/SDL_winrtvideo_cpp.h	Tue May 06 20:31:10 2014 -0400
     1.2 +++ b/src/video/winrt/SDL_winrtvideo_cpp.h	Fri May 09 20:16:21 2014 -0400
     1.3 @@ -70,6 +70,13 @@
     1.4  
     1.5  #ifdef __cplusplus_winrt
     1.6  
     1.7 +/* A convenience macro to get a WinRT display property */
     1.8 +#if NTDDI_VERSION > NTDDI_WIN8
     1.9 +#define WINRT_DISPLAY_PROPERTY(NAME) (Windows::Graphics::Display::DisplayInformation::GetForCurrentView()->NAME)
    1.10 +#else
    1.11 +#define WINRT_DISPLAY_PROPERTY(NAME) (Windows::Graphics::Display::DisplayProperties::NAME)
    1.12 +#endif
    1.13 +
    1.14  /* Internal window data */
    1.15  struct SDL_WindowData
    1.16  {