File 0001-Add-support-for-HiDPI-screens.patch of Package qmapshack
From 08a408475c951c069a4554c516ea549ed2abf8dc Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@cryptomilk.org>
Date: Sun, 3 Jan 2021 12:35:37 +0100
Subject: [PATCH] Add support for HiDPI screens
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
---
src/qmapshack/main.cpp | 3 +++
1 file changed, 3 insertions(+)
--- a/src/qmapshack/main.cpp 2023-07-20 16:13:59.000000000 +0200
+++ b/src/qmapshack/main.cpp 2023-07-31 11:05:29.591230260 +0200
@@ -29,6 +29,9 @@
int main(int argc, char** argv) {
QApplication app(argc, argv);
+ QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
QCoreApplication::setApplicationName("QMapShack");
QCoreApplication::setOrganizationName("QLandkarte");
QCoreApplication::setOrganizationDomain("qlandkarte.org");