aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2023-01-17 20:00:21 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2023-01-17 20:00:21 +0100
commitd83172e59502d171bf07f3a4a8b7630752cec60b (patch)
treed9cb8684c641ec29d3da1ca9ca6eaf8a11be3196
parent8ec8a6ce09923a4bc721f7935cd6b16ad775a983 (diff)
fix window aspect ratio
-rw-r--r--src/frontend/qt_sdl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 7275693..8ba8fb6 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,