diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2022-11-20 23:46:53 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2022-12-13 19:23:35 +0100 |
commit | 5754456292e920810e3b036b851c05c5332353ce (patch) | |
tree | 9a517000d71f3d0e14ceb3c765041d7a49b7be42 /src/yuzu_cmd/emu_window | |
parent | video_core/vulkan: Explicity check swapchain size when deciding to recreate (diff) | |
download | yuzu-5754456292e920810e3b036b851c05c5332353ce.tar yuzu-5754456292e920810e3b036b851c05c5332353ce.tar.gz yuzu-5754456292e920810e3b036b851c05c5332353ce.tar.bz2 yuzu-5754456292e920810e3b036b851c05c5332353ce.tar.lz yuzu-5754456292e920810e3b036b851c05c5332353ce.tar.xz yuzu-5754456292e920810e3b036b851c05c5332353ce.tar.zst yuzu-5754456292e920810e3b036b851c05c5332353ce.zip |
Diffstat (limited to 'src/yuzu_cmd/emu_window')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index 37dd1747c..31f28a507 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp @@ -115,7 +115,7 @@ bool EmuWindow_SDL2::IsShown() const { void EmuWindow_SDL2::OnResize() { int width, height; - SDL_GetWindowSize(render_window, &width, &height); + SDL_GL_GetDrawableSize(render_window, &width, &height); UpdateCurrentFramebufferLayout(width, height); } |