From d83172e59502d171bf07f3a4a8b7630752cec60b Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 17 Jan 2023 20:00:21 +0100 Subject: [PATCH] fix window aspect ratio --- src/frontend/qt_sdl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 7275693602..8ba8fb6c41 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -966,10 +966,10 @@ void ScreenHandler::screenSetupLayout(int w, int h) } if (aspectTop == 0) - aspectTop = (float) w / h; + aspectTop = ((float) w / h) / (4.f / 3.f); if (aspectBot == 0) - aspectBot = (float) w / h; + aspectBot = ((float) w / h) / (4.f / 3.f); Frontend::SetupScreenLayout(w, h, Config::ScreenLayout,