summaryrefslogtreecommitdiff
path: root/sci-mathematics/rkward/files/rkward-0.7.2-fix-hidpi.patch
blob: cff7b60f19515c4ade2b0e3e92e8f4c05189b388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From f34cb38798e8a7d3f9a39f26be4ecab3013ea57c Mon Sep 17 00:00:00 2001
From: Nicolas Fella <nicolas.fella@gmx.de>
Date: Tue, 5 Oct 2021 22:36:30 +0200
Subject: [PATCH] Enable highdpi pixmaps

This fixes icons being pixelated on highdpi screens
---
 rkward/main.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rkward/main.cpp b/rkward/main.cpp
index 8eafd25c..7dcb34a5 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -239,6 +239,7 @@ QString resolveRSpecOrFail (QString input, QString message) {
 
 int main (int argc, char *argv[]) {
 	RK_Debug::RK_Debug_Level = DL_WARNING;
+	QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
 #ifndef NO_QT_WEBENGINE
 	// annoyingly, QWebEngineUrlSchemes have to be registered before creating the app.
 	QWebEngineUrlScheme scheme("help");
-- 
GitLab