mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
Linux: fix Qt scaling factor
This commit is contained in:
+6
-5
@@ -37,11 +37,6 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
||||
}
|
||||
#endif
|
||||
|
||||
// Disable High DPI scaling on Linux for now
|
||||
#if defined(Q_OS_LINUX)
|
||||
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
|
||||
#endif
|
||||
|
||||
QStringList argv_;
|
||||
for(int i = 0; i != argc; i++){
|
||||
argv_ << QString::fromStdString(argv[i]);
|
||||
@@ -96,11 +91,17 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
||||
QApplication::setDesktopSettingsAware(true); // use system font
|
||||
QApplication::setApplicationVersion(FEATHER_VERSION);
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
// PassThrough results in muddy text
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||
#endif
|
||||
|
||||
SingleApplication app(argc, argv);
|
||||
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
QApplication::setApplicationName("FeatherWallet");
|
||||
|
||||
|
||||
// Setup config directories
|
||||
QString configDir = Config::defaultConfigDir().path();
|
||||
QString config_dir_tor = QString("%1/%2").arg(configDir, "tor");
|
||||
|
||||
Reference in New Issue
Block a user