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.
This commit is contained in:
z0z0z 2019-05-14 17:32:42 +00:00 committed by Ivan
parent 6b01c2f9f5
commit 7cf11c7637

View File

@ -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__