Skip to content

Commit

Permalink
Set the the HighDpiScaleFactorRoundingPolicy to PassThrough
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jul 30, 2021
1 parent 2d3d4da commit 9f76ed8
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 9f76ed8

Please sign in to comment.