diff options
author | David O'Shaughnessy <dev@osh.id.au> | 2023-05-13 11:42:25 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-13 19:27:17 +0700 |
commit | 55777d8ce14ebd662d2d536811bbbf17004f0f70 (patch) | |
tree | 9870e38c27ba0f9f17578d6605f87a07c9666b7e /games/chessx | |
parent | fb265342afefb5b1f58889669e03f2a35603ac45 (diff) |
games/chessx: Fix GUI issues.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/chessx')
-rw-r--r-- | games/chessx/chessx.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/games/chessx/chessx.SlackBuild b/games/chessx/chessx.SlackBuild index 7acb8b9ba0932..214568d1307a7 100644 --- a/games/chessx/chessx.SlackBuild +++ b/games/chessx/chessx.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=chessx VERSION=${VERSION:-1.5.8} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,6 +79,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Taken from Arch, fixes the GUI problems +sed -i '/QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);/a\ + QCoreApplication::setAttribute(Qt::AA_DontUseNativeDialogs);' src/gui/main.cpp + # Compile the application with Qt lupdate-qt5 chessx.pro lrelease-qt5 i18n/*.ts |