Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update main.cpp
  • Loading branch information
jbp35 authored and nyalldawson committed May 11, 2023
1 parent d08c3d8 commit fc47195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/main.cpp
Expand Up @@ -921,9 +921,9 @@ int main( int argc, char *argv[] )
// Set up for high DPI displays
// The following values are set by default in Qt 6
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QCoreApplication::setAttribute( Qt::AA_EnableHighDpiScaling, true );
QCoreApplication::setAttribute( Qt::AA_UseHighDpiPixmaps );
QGuiApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
#endif

// GUI customization is enabled according to settings (loaded when instance is created)
Expand Down

0 comments on commit fc47195

Please sign in to comment.