Last active
May 24, 2019 12:09
-
-
Save dramforever/b7c5a76d1b9b6cc12990b81170922404 to your computer and use it in GitHub Desktop.
telegram-desktop: Fix UI scaling on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 622543203c56845f5ad3e0f358b242736b33001e Mon Sep 17 00:00:00 2001 | |
From: dramforever <[email protected]> | |
Date: Fri, 24 May 2019 20:06:31 +0800 | |
Subject: [PATCH] Fix scaling | |
--- | |
trunk/PKGBUILD | 2 +- | |
trunk/tdesktop.patch | 10 ---------- | |
2 files changed, 1 insertion(+), 11 deletions(-) | |
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD | |
index d6d800e..4c185b2 100644 | |
--- a/trunk/PKGBUILD | |
+++ b/trunk/PKGBUILD | |
@@ -40,7 +40,7 @@ sha512sums=('SKIP' | |
'SKIP' | |
'b87414ceaae19185a8a5749cea1f6d9f3fc3c69b8dd729e3db8790cde00b987c3c827cd30baf0eac579d1884e34aa2f37bb90778c3c0bc9ca211d75a82891b9d' | |
'b20674f61ff6378749d1f59a6a0da194d33ccc786bd783f6ed62027924a3a8a8d27c9763bf376480432d6536896b0c7eeb8c495c5b8cefff7cf5fe84da50947e' | |
- '710af6c851aa8535aec8fb32e8c05d934970bab227f935dec0e2fbcad5b8b2ad277793e4226bd1d4e46e77150fa05bc3326cce1118f91de87e1b0e477315523f' | |
+ 'a2ab1dd734e0328e8f799ac42b942e7620ed6c04474f7bd3aea9f6a0bd555677e40dff539d98415c14cce4c3f8ae22aacc7ae93c0dd5920e38a7543d5e78110b' | |
'a8f1708616a598fea3cb94e3b63b02a7b13b55abd129a5dc02ad502529f4ebe7a673b6a350b669290fd26135358d21e2e10bf4a11d88f58f0685b7c4ab515bc5' | |
'd60694dc701aa985b0e82a12c9732b945082470441c687b33167a94f94efcf253baf43bb7280ec160ba338485ee5c62de138e4804cae05f27cc5cf4298166d39' | |
'6d0bac5aa4c4992b5400a9a9318f7a4e92d5eab961917cf0b05cdd251ab66a77c52ec8fbef246e8019606a7624d7b5420b87f8153e071e9724c7d2f5c94e47c0' | |
diff --git a/trunk/tdesktop.patch b/trunk/tdesktop.patch | |
index e578ff0..df6fbf9 100644 | |
--- a/trunk/tdesktop.patch | |
+++ b/trunk/tdesktop.patch | |
@@ -12,16 +12,6 @@ diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/ | |
index b1246588a..7f522cc86 100644 | |
--- a/Telegram/SourceFiles/core/launcher.cpp | |
+++ b/Telegram/SourceFiles/core/launcher.cpp | |
-@@ -248,9 +248,6 @@ void Launcher::init() { | |
- #elif defined(Q_OS_LINUX) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) | |
- QApplication::setDesktopFileName(qsl("telegramdesktop.desktop")); | |
- #endif | |
--#ifndef OS_MAC_OLD | |
-- QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); | |
--#endif // OS_MAC_OLD | |
- | |
- initHook(); | |
- } | |
@@ -59,6 +60,13 @@ int Launcher::exec() { | |
Logs::start(this); // must be started before Platform is started | |
Platform::start(); // must be started before QApplication is created | |
-- | |
2.21.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment