mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-03 17:38:15 +00:00
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:
parent
6b01c2f9f5
commit
7cf11c7637
@ -97,7 +97,7 @@ int main(int argc, char** argv)
|
|||||||
#if defined(_WIN32) || defined(__APPLE__)
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
#else
|
#else
|
||||||
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
|
setenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1", 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
Reference in New Issue
Block a user