From 1fef418adb87563306b8111e42f4408e8292bf3f Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 21 Dec 2019 06:31:25 +0100 Subject: [PATCH] main: enable high DPI scaling --- src/main/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index 6b0a8744..8d710981 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -170,11 +170,8 @@ int main(int argc, char *argv[]) if (isDesktop) putenv((char*)"QT_QPA_PLATFORM=xcb"); #endif -// // Enable high DPI scaling on windows & linux -//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600 -// QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -// qDebug() << "High DPI auto scaling - enabled"; -//#endif + // enable High DPI scaling + qputenv("QT_ENABLE_HIGHDPI_SCALING", "1"); // Turn off colors in monerod log output. qputenv("TERM", "goaway");