From 25d73f5a706b9ae31eecb03cba9d61e3f7fba206 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 29 Jul 2020 13:21:49 +0200 Subject: [PATCH] Try to fix ugly GUIs --- rpcs3/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 00e379de65..46e764f4f7 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -195,6 +195,12 @@ QCoreApplication* createApplication(int& argc, char* argv[]) { qputenv("DISPLAY", ":0"); } + + // Set QT_AUTO_SCALE_FACTOR to 0. This value is deprecated but still seems to make problems on some distros + if (!qEnvironmentVariable("QT_AUTO_SCALE_FACTOR", "").isEmpty()) + { + qputenv("QT_AUTO_SCALE_FACTOR", "0"); + } #endif bool use_high_dpi = true;