From 4c2a653de6e3ec737c163a6274293462b1b5a3d3 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Mon, 9 Mar 2015 04:03:15 +0100 Subject: [PATCH] Removing minimal window size limit from entry-sdl. --- examples/common/entry/entry_sdl.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/common/entry/entry_sdl.cpp b/examples/common/entry/entry_sdl.cpp index 4aea1044..c279f0fd 100644 --- a/examples/common/entry/entry_sdl.cpp +++ b/examples/common/entry/entry_sdl.cpp @@ -705,19 +705,6 @@ namespace entry m_width = _width; m_height = _height; - if (m_width < m_height) - { - float aspectRatio = 1.0f/m_aspectRatio; - m_width = bx::uint32_max(ENTRY_DEFAULT_WIDTH/4, m_width); - m_height = uint32_t(float(m_width)*aspectRatio); - } - else - { - float aspectRatio = m_aspectRatio; - m_height = bx::uint32_max(ENTRY_DEFAULT_HEIGHT/4, m_height); - m_width = uint32_t(float(m_height)*aspectRatio); - } - SDL_SetWindowSize(m_window[_handle.idx], m_width, m_height); m_eventQueue.postSizeEvent(_handle, m_width, m_height); }