mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
Merge pull request #12273 from Kolcha/hidpif
Don't round scaling factor
This commit is contained in:
commit
185d8c97c1
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,9 @@ int main(int argc, char *argv[])
|
||||||
// Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created
|
// Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created
|
||||||
if (qgetenv("QT_ENABLE_HIGHDPI_SCALING").isEmpty() && qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty())
|
if (qgetenv("QT_ENABLE_HIGHDPI_SCALING").isEmpty() && qgetenv("QT_AUTO_SCREEN_SCALE_FACTOR").isEmpty())
|
||||||
Application::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
Application::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||||
|
// HighDPI scale factor policy must be set before QGuiApplication is created
|
||||||
|
if (qgetenv("QT_SCALE_FACTOR_ROUNDING_POLICY").isEmpty())
|
||||||
|
Application::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue