From 7cf11c763796b6ccc999ea749faa0e0399ef6be1 Mon Sep 17 00:00:00 2001 From: z0z0z Date: Tue, 14 May 2019 17:32:42 +0000 Subject: [PATCH] Use setenv instead of qputenv A user reported issues with Qt's hidpi scaling and RPCS3. They could not disable with their own environment variable because qputenv overwrites them, setenv with 0 as third arg doesn't. --- rpcs3/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index a367f1dc72..961fa9ab83 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -97,7 +97,7 @@ int main(int argc, char** argv) #if defined(_WIN32) || defined(__APPLE__) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #else - qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); + setenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1", 0); #endif #ifdef __linux__