Disable DPI scaling for good (#769)

This commit is contained in:
Crystalwarrior 2022-05-23 21:45:16 +03:00 committed by GitHub
parent 35004921d3
commit 704c279f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,13 +14,6 @@ int main(int argc, char *argv[])
{ {
qSetMessagePattern("%{type}: %{if-category}%{category}: %{endif}%{message}"); qSetMessagePattern("%{type}: %{if-category}%{category}: %{endif}%{message}");
#if QT_VERSION > QT_VERSION_CHECK(5, 6, 0)
// High-DPI support is for Qt version >=5.6.
// However, many Linux distros still haven't brought their stable/LTS
// packages up to Qt 5.6, so this is conditional.
AOApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
AOApplication main_app(argc, argv); AOApplication main_app(argc, argv);
AOApplication::addLibraryPath(AOApplication::applicationDirPath() + "/lib"); AOApplication::addLibraryPath(AOApplication::applicationDirPath() + "/lib");