Skip to content

Commit

Permalink
Merge pull request #4161 from daschuer/HighDpiScaleFactorRoundingPolicy
Browse files Browse the repository at this point in the history
Set the the HighDpiScaleFactorRoundingPolicy to PassThrough
  • Loading branch information
uklotzde authored Jul 31, 2021
2 parents 2d3d4da + 9f76ed8 commit 69773ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ int main(int argc, char * argv[]) {
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
// Follow whatever factor the user has selected in the system settings
// By default the value is always rounded to the nearest int.
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif

// Setting the organization name results in a QDesktopStorage::DataLocation
// of "$HOME/Library/Application Support/Mixxx/Mixxx" on OS X. Leave the
Expand Down

0 comments on commit 69773ae

Please sign in to comment.