r24052 by jghali - Set HiDPI scale factor rounding policy on Windows when compiled with Qt >= 5.14

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 4 00:35:23 UTC 2020


Author: jghali
Date: Sun Oct  4 00:35:23 2020
New Revision: 24052

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24052
Log:
Set HiDPI scale factor rounding policy on Windows when compiled with Qt >= 5.14

Modified:
    trunk/Scribus/scribus/main_win32.cpp

Modified: trunk/Scribus/scribus/main_win32.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24052&path=/trunk/Scribus/scribus/main_win32.cpp
==============================================================================
--- trunk/Scribus/scribus/main_win32.cpp	(original)
+++ trunk/Scribus/scribus/main_win32.cpp	Sun Oct  4 00:35:23 2020
@@ -98,6 +98,10 @@
 #endif
 
 	ScribusQApp::setAttribute(Qt::AA_EnableHighDpiScaling);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+	ScribusQApp::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
+#endif
+
 	ScribusQApp app(argc, argv);
 	setPythonEnvironment(app.applicationDirPath());
 	result =  mainApp(app);




More information about the scribus-commit mailing list