Avoid enabling High DPI mode on EGLFS to fix font rendering

This commit is contained in:
Cameron Gutman 2020-02-08 18:11:33 -08:00
parent 77386f8dfc
commit 0437835bde

View File

@ -285,6 +285,9 @@ int main(int argc, char *argv[])
AntiHookingDummyImport();
#endif
// Avoid using High DPI on EGLFS. It breaks font rendering.
// https://bugreports.qt.io/browse/QTBUG-64377
if (QGuiApplication::platformName() != "eglfs") {
// Enable High DPI support
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
@ -292,6 +295,7 @@ int main(int argc, char *argv[])
// Enable fractional High DPI scaling on Qt 5.14 and later
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
}
// This avoids using the default keychain for SSL, which may cause
// password prompts on macOS.