From bd16ae27c0d0a8aa07f762e7a0da9a31d44cee87 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sat, 27 Oct 2018 10:03:34 +0800 Subject: [PATCH] do not enable HighDpiScaling from QT --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 69eeebf8..45ab1457 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -131,7 +131,10 @@ int main(int argc, char *argv[]) // Or set environment QT_OPENGL to "angle/desktop/software". // QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + + // This only takes effect on Win, X11 and Android. + // It will disturb original scaling. Just disable it for now. + // QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv);