Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WinRT: removed more hack-code that attempted to help have non-standar…
…d window sizes

"Non-standard" is defined here as any window size that differs from that provided by WinRT's CoreWindow.
  • Loading branch information
DavidLudwig committed Aug 27, 2013
1 parent 80abfc4 commit f8e80ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/winrt/SDL_winrtapp.cpp
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit f8e80ed

Please sign in to comment.