diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index 10f13f1845..44502858d4 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp @@ -147,8 +147,8 @@ void EmuWindow::TouchMoved(unsigned framebuffer_x, unsigned framebuffer_y) { void EmuWindow::UpdateCurrentFramebufferLayout(unsigned width, unsigned height) { Layout::FramebufferLayout layout; - Settings::LayoutOption layout_option = Settings::values.layout_option; - std::pair min_size = + const auto layout_option = Settings::values.layout_option; + const auto min_size = Layout::GetMinimumSizeFromLayout(layout_option, Settings::values.upright_screen); if (Settings::values.custom_layout == true) { @@ -180,4 +180,11 @@ void EmuWindow::UpdateCurrentFramebufferLayout(unsigned width, unsigned height) NotifyFramebufferLayoutChanged(layout); } +void EmuWindow::UpdateMinimumWindowSize(std::pair min_size) { + WindowConfig new_config = config; + new_config.min_client_area_size = min_size; + SetConfig(new_config); + ProcessConfigurationChanges(); +} + } // namespace Frontend diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 680bc7587e..efaa25d9f3 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -216,12 +216,7 @@ private: */ std::tuple ClipToTouchScreen(unsigned new_x, unsigned new_y) const; - void UpdateMinimumWindowSize(std::pair min_size) { - WindowConfig new_config = config; - new_config.min_client_area_size = min_size; - SetConfig(new_config); - ProcessConfigurationChanges(); - } + void UpdateMinimumWindowSize(std::pair min_size); }; } // namespace Frontend