File chessx-Qt5-HiDPI-scaling-policy.patch of Package chessx

Index: chessx-1.5.6+git.20211128.2fab7884/src/gui/main.cpp
===================================================================
--- chessx-1.5.6+git.20211128.2fab7884.orig/src/gui/main.cpp
+++ chessx-1.5.6+git.20211128.2fab7884/src/gui/main.cpp
@@ -96,7 +96,10 @@ prevHook = _CrtSetReportHook(customRepor
 
     QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);     // HiDPI support
     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);  // Windows Surface Book
-
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
+    QApplication::setHighDpiScaleFactorRoundingPolicy(
+		    Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
+#endif
     QApplication app(argc, argv);
 
     QDir dir(QApplication::applicationDirPath());
openSUSE Build Service is sponsored by