From abd916f9d5457a0048e21a958b068558bf6ba6ac Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 8 Sep 2016 13:30:26 +0200 Subject: [PATCH] Use Qt::AA_UseHighDpiPixmaps This will fix some issues... and introduce new ones: * Some pixmaps are now cut * Old banner pixmap still pixelated * Overall looks much less pixelated Resolves GH-248. (cherry picked from commit d29a6e9521e27e5d4d86fec82b5daa71085f87a5) --- src/common/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/main.cpp b/src/common/main.cpp index 1f397311..3d334956 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -182,11 +182,17 @@ int main(int argc, char **argv) #elif defined BUILD_QTUI # if QT_VERSION >= 0x050600 QtUiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif +# if QT_VERSION >= 0x050700 + QtUiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); # endif QtUiApplication app(argc, argv); #elif defined BUILD_MONO # if QT_VERSION >= 0x050600 MonolithicApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif +# if QT_VERSION >= 0x050700 + MonolithicApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); # endif MonolithicApplication app(argc, argv); #endif -- 2.20.1