From 489b00c046f9782992389502e530fc805f189190 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 26 Dec 2020 12:07:37 +0100 Subject: [PATCH] Enabled high dpi scaling that now works again with 5.15.2 only! --- ScreenPlay/main.cpp | 6 ------ ScreenPlayWallpaper/main.cpp | 7 +------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/ScreenPlay/main.cpp b/ScreenPlay/main.cpp index d02259b7..f681e0da 100644 --- a/ScreenPlay/main.cpp +++ b/ScreenPlay/main.cpp @@ -46,13 +46,7 @@ int main(int argc, char* argv[]) { -// Buggy with every Qt version except 5.14.0! -// Displays wrong DPI scaled monitor resolution -// 4k with 150% scaling to FULL HD on Windows -// https://bugreports.qt.io/browse/QTBUG-81694 -#if defined(Q_OS_LINUX) || defined(Q_OS_OSX) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -#endif QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication qtGuiApp(argc, argv); diff --git a/ScreenPlayWallpaper/main.cpp b/ScreenPlayWallpaper/main.cpp index e92936c7..be88a73c 100644 --- a/ScreenPlayWallpaper/main.cpp +++ b/ScreenPlayWallpaper/main.cpp @@ -21,12 +21,7 @@ int main(int argc, char* argv[]) { - - // Buggy with every Qt version except 5.14.0! - // Displays wrong DPI scaled monitor resolution - // 4k with 150% scaling to FULL HD on Windows - // https://bugreports.qt.io/browse/QTBUG-81694 - // QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication app(argc, argv);