diff options
author | bunnei <bunneidev@gmail.com> | 2015-03-07 23:21:19 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-03-07 23:21:19 +0100 |
commit | 9960c49c217d2c1ae202bdacd475c9a47cda39b9 (patch) | |
tree | a80e07b2ee63c3a081f3b3aec4eb45279b6f9b85 /src/citra/emu_window/emu_window_glfw.cpp | |
parent | Merge pull request #615 from Subv/services (diff) | |
download | yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.gz yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.bz2 yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.lz yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.xz yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.tar.zst yuzu-9960c49c217d2c1ae202bdacd475c9a47cda39b9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/citra/emu_window/emu_window_glfw.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp index ec3e8cf34..81231e1e5 100644 --- a/src/citra/emu_window/emu_window_glfw.cpp +++ b/src/citra/emu_window/emu_window_glfw.cpp @@ -36,20 +36,13 @@ const bool EmuWindow_GLFW::IsOpen() { } void EmuWindow_GLFW::OnFramebufferResizeEvent(GLFWwindow* win, int width, int height) { - ASSERT(width > 0); - ASSERT(height > 0); - - GetEmuWindow(win)->NotifyFramebufferSizeChanged(std::pair<unsigned,unsigned>(width, height)); + GetEmuWindow(win)->NotifyFramebufferLayoutChanged(EmuWindow::FramebufferLayout::DefaultScreenLayout(width, height)); } void EmuWindow_GLFW::OnClientAreaResizeEvent(GLFWwindow* win, int width, int height) { - ASSERT(width > 0); - ASSERT(height > 0); - // NOTE: GLFW provides no proper way to set a minimal window size. // Hence, we just ignore the corresponding EmuWindow hint. - - GetEmuWindow(win)->NotifyClientAreaSizeChanged(std::pair<unsigned,unsigned>(width, height)); + OnFramebufferResizeEvent(win, width, height); } /// EmuWindow_GLFW constructor |