From f8e80edf099213bb1e1c066f445b80d38ea53798 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Tue, 27 Aug 2013 11:00:52 -0400 Subject: [PATCH] WinRT: removed more hack-code that attempted to help have non-standard window sizes "Non-standard" is defined here as any window size that differs from that provided by WinRT's CoreWindow. --- src/core/winrt/SDL_winrtapp.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/winrt/SDL_winrtapp.cpp b/src/core/winrt/SDL_winrtapp.cpp index e2fbba77d..2ce66b5d1 100644 --- a/src/core/winrt/SDL_winrtapp.cpp +++ b/src/core/winrt/SDL_winrtapp.cpp @@ -290,8 +290,8 @@ void SDL_WinRTApp::OnWindowSizeChanged(CoreWindow^ sender, WindowSizeChangedEven if (m_sdlWindowData) { // Make the new window size be the one true fullscreen mode. - // This change was done, in part, to allow the Direct3D 11.1 renderer - // to receive window-resize events as a device rotates. + // This change was initially done, in part, to allow the Direct3D 11.1 + // renderer to receive window-resize events as a device rotates. // Before, rotating a device from landscape, to portrait, and then // back to landscape would cause the Direct3D 11.1 swap buffer to // not get resized appropriately. SDL would, on the rotation from @@ -305,8 +305,6 @@ void SDL_WinRTApp::OnWindowSizeChanged(CoreWindow^ sender, WindowSizeChangedEven m_sdlVideoDevice->displays[0].desktop_mode = resizedDisplayMode; m_sdlVideoDevice->displays[0].display_modes[0] = resizedDisplayMode; - m_sdlWindowData->sdlWindow->fullscreen_mode = resizedDisplayMode; - // Send the window-resize event to the rest of SDL, and to apps: const int windowWidth = (int) ceil(args->Size.Width); const int windowHeight = (int) ceil(args->Size.Height);