Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt: Use QT_ENABLE_HIGHDPI_SCALING starting with Qt 5.14 #7090

Merged
merged 6 commits into from
Dec 14, 2019

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Dec 14, 2019

The following was added with Qt 5.14:

  • Applications can now opt-in to use non-integer scale factors, for example Windows at 150%. Use QGuiApplication::highDpiScaleFactorRoundingPolicy or QT_SCALE_FACTOR_ROUNDING_POLICY to set the rounding policy.
  • Added the QT_ENABLE_HIGHDPI_SCALING environment variable which enables high-dpi scaling based on display DPI. Replaces QT_AUTO_SCREEN_SCALE_FACTOR (now deprecated), and corresponds to the Qt::AA_EnableHighDpiScaling application attribute.

So starting with Qt 5.14 I'm adding a command line argument "dpi-rounding" that accepts values in the valid range of Qt::HighDpiScaleFactorRoundingPolicy.

dpi-rounding

@Megamouse Megamouse added CLI Anything that involves starting RPCS3 through the command line interface GUI labels Dec 14, 2019
@Megamouse Megamouse force-pushed the QT_ENABLE_HIGHDPI_SCALING branch from a9250f0 to c35bff5 Compare December 14, 2019 10:46
@Megamouse Megamouse merged commit 97fb089 into RPCS3:master Dec 14, 2019
@Megamouse Megamouse deleted the QT_ENABLE_HIGHDPI_SCALING branch December 14, 2019 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Anything that involves starting RPCS3 through the command line interface GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant