mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-15 09:50:06 +00:00
emu_window_sdl2: Respect hidpi
Use SDL_GL_GetDrawableSize instead of SDL_GetWindowSize which will return the true size our swapchain needs to be in even for hidpi displays.
This commit is contained in:
parent
06c426883f
commit
aac0e07d1e
@ -84,7 +84,7 @@ void EmuWindow_SDL2::RequestClose() {
|
|||||||
|
|
||||||
void EmuWindow_SDL2::OnResize() {
|
void EmuWindow_SDL2::OnResize() {
|
||||||
int width, height;
|
int width, height;
|
||||||
SDL_GetWindowSize(render_window, &width, &height);
|
SDL_GL_GetDrawableSize(render_window, &width, &height);
|
||||||
UpdateCurrentFramebufferLayout(width, height);
|
UpdateCurrentFramebufferLayout(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user