Skip to content
Permalink
Browse files

Fixed rendering-alignment issues on WinPhone 8.1, when the device was…

… rotated

If a Windows Phone 8.1 device was rotated to anything but Portrait mode,
the Direct3D 11 renderer's output wouldn't get aligned correctly with the
screen.
  • Loading branch information
DavidLudwig committed May 10, 2014
1 parent 33f81a0 commit 0a879d63bddc6d58bbeb7bf7d377f9d36b335a01

File 4 of 4 in 0a879d6

@@ -70,6 +70,13 @@ typedef struct

#ifdef __cplusplus_winrt

/* A convenience macro to get a WinRT display property */
#if NTDDI_VERSION > NTDDI_WIN8
#define WINRT_DISPLAY_PROPERTY(NAME) (Windows::Graphics::Display::DisplayInformation::GetForCurrentView()->NAME)
#else
#define WINRT_DISPLAY_PROPERTY(NAME) (Windows::Graphics::Display::DisplayProperties::NAME)
#endif

/* Internal window data */
struct SDL_WindowData
{

0 comments on commit 0a879d6

Please sign in to comment.