浏览代码

do not enable HighDpiScaling from QT

Le Tan 7 年之前
父节点
当前提交
bd16ae27c0
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main.cpp

+ 4 - 1
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);