Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kmahjongg for openSUSE:Factory checked in at 2022-02-04 21:48:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmahjongg (Old) and /work/SRC/openSUSE:Factory/.kmahjongg.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmahjongg" Fri Feb 4 21:48:11 2022 rev:119 rq:951061 version:21.12.2 Changes: -------- --- /work/SRC/openSUSE:Factory/kmahjongg/kmahjongg.changes 2022-01-11 21:22:24.761091472 +0100 +++ /work/SRC/openSUSE:Factory/.kmahjongg.new.1898/kmahjongg.changes 2022-02-04 21:50:26.263958704 +0100 @@ -1,0 +2,10 @@ +Tue Feb 1 13:03:11 UTC 2022 - Christophe Giboudeaux <[email protected]> + +- Update to 21.12.2 + * New bugfix release + * For more details please see: + * https://kde.org/announcements/gear/21.12.2/ +- Changes since 21.12.1: + * Make hidpi aware + +------------------------------------------------------------------- Old: ---- kmahjongg-21.12.1.tar.xz kmahjongg-21.12.1.tar.xz.sig New: ---- kmahjongg-21.12.2.tar.xz kmahjongg-21.12.2.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmahjongg.spec ++++++ --- /var/tmp/diff_new_pack.OehcaI/_old 2022-02-04 21:50:26.915954253 +0100 +++ /var/tmp/diff_new_pack.OehcaI/_new 2022-02-04 21:50:26.919954226 +0100 @@ -20,7 +20,7 @@ %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} %bcond_without released Name: kmahjongg -Version: 21.12.1 +Version: 21.12.2 Release: 0 Summary: Mahjongg game License: GPL-2.0-or-later ++++++ kmahjongg-21.12.1.tar.xz -> kmahjongg-21.12.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/CMakeLists.txt new/kmahjongg-21.12.2/CMakeLists.txt --- old/kmahjongg-21.12.1/CMakeLists.txt 2022-01-03 22:44:03.000000000 +0100 +++ new/kmahjongg-21.12.2/CMakeLists.txt 2022-01-29 00:07:20.000000000 +0100 @@ -3,7 +3,7 @@ # Release Service version, managed by release script set (RELEASE_SERVICE_VERSION_MAJOR "21") set (RELEASE_SERVICE_VERSION_MINOR "12") -set (RELEASE_SERVICE_VERSION_MICRO "1") +set (RELEASE_SERVICE_VERSION_MICRO "2") set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}") # Bump KMAHJONGG_BASE_VERSION once new features are added diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/org.kde.kmahjongg.appdata.xml new/kmahjongg-21.12.2/org.kde.kmahjongg.appdata.xml --- old/kmahjongg-21.12.1/org.kde.kmahjongg.appdata.xml 2022-01-03 22:44:03.000000000 +0100 +++ new/kmahjongg-21.12.2/org.kde.kmahjongg.appdata.xml 2022-01-29 00:07:20.000000000 +0100 @@ -156,9 +156,9 @@ <binary>kmahjongg</binary> </provides> <releases> + <release version="0.9.21122" date="2022-02-03"/> <release version="0.9.21121" date="2022-01-06"/> <release version="0.9.21120" date="2021-12-09"/> <release version="0.9.21083" date="2021-11-04"/> - <release version="0.9.21082" date="2021-10-07"/> </releases> </component> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/po/ca/kmahjongg.po new/kmahjongg-21.12.2/po/ca/kmahjongg.po --- old/kmahjongg-21.12.1/po/ca/kmahjongg.po 2022-01-04 01:17:55.000000000 +0100 +++ new/kmahjongg-21.12.2/po/ca/kmahjongg.po 2022-02-01 01:09:11.000000000 +0100 @@ -567,24 +567,3 @@ #, kde-format msgid "Show removed tiles" msgstr "Mostra les fitxes eliminades" - -#~ msgid "Sorry, you have lost the game." -#~ msgstr "Ho sento, heu perdut la partida." - -#~ msgid "Now it is you again." -#~ msgstr "Ara torna a ser el vostre torn." - -#~ msgid "Congratulations. You have won!" -#~ msgstr "Felicitats. Heu guanyat!" - -#~ msgid "Error converting board information!" -#~ msgstr "S'ha produ??t un error en convertir la informaci?? del tauler!" - -#~ msgid "Only saving to local files currently supported." -#~ msgstr "Actualment nom??s es poden desar fitxers locals." - -#~ msgid "Could not write saved game." -#~ msgstr "No es pot escriure al fitxer." - -#~ msgid "Mauricio Piacentini" -#~ msgstr "Mauricio Piacentini" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/po/ca@valencia/kmahjongg.po new/kmahjongg-21.12.2/po/ca@valencia/kmahjongg.po --- old/kmahjongg-21.12.1/po/ca@valencia/kmahjongg.po 2022-01-04 01:17:55.000000000 +0100 +++ new/kmahjongg-21.12.2/po/ca@valencia/kmahjongg.po 2022-02-01 01:09:11.000000000 +0100 @@ -567,24 +567,3 @@ #, kde-format msgid "Show removed tiles" msgstr "Mostra les fitxes eliminades" - -#~ msgid "Sorry, you have lost the game." -#~ msgstr "Ho sento, heu perdut la partida." - -#~ msgid "Now it is you again." -#~ msgstr "Ara torna a ser el vostre torn." - -#~ msgid "Congratulations. You have won!" -#~ msgstr "Felicitats. Heu guanyat!" - -#~ msgid "Error converting board information!" -#~ msgstr "S'ha produ??t un error en convertir la informaci?? del tauler!" - -#~ msgid "Only saving to local files currently supported." -#~ msgstr "Actualment nom??s es poden desar fitxers locals." - -#~ msgid "Could not write saved game." -#~ msgstr "No es pot escriure al fitxer." - -#~ msgid "Mauricio Piacentini" -#~ msgstr "Mauricio Piacentini" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/po/zh_CN/kmahjongg.po new/kmahjongg-21.12.2/po/zh_CN/kmahjongg.po --- old/kmahjongg-21.12.1/po/zh_CN/kmahjongg.po 2022-01-04 01:17:55.000000000 +0100 +++ new/kmahjongg-21.12.2/po/zh_CN/kmahjongg.po 2022-02-01 01:09:11.000000000 +0100 @@ -11,7 +11,7 @@ "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2021-06-17 00:14+0000\n" -"PO-Revision-Date: 2021-12-22 14:10\n" +"PO-Revision-Date: 2022-01-08 15:25\n" "Last-Translator: \n" "Language-Team: Chinese Simplified\n" "Language: zh_CN\n" @@ -456,9 +456,9 @@ "(c) 2006, Mauricio Piacentini\n" "(c) 2011, Christian Krippendorf" msgstr "" -"(c) 1997???Mathias Mueller\n" -"(c) 2006???Mauricio Piacentini\n" -"(c) 2011???Christian Krippendorf" +"(c) 1997, Mathias Mueller\n" +"(c) 2006, Mauricio Piacentini\n" +"(c) 2011, Christian Krippendorf" #: src/main.cpp:35 #, kde-format diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kmahjongg-21.12.1/src/gameitem.cpp new/kmahjongg-21.12.2/src/gameitem.cpp --- old/kmahjongg-21.12.1/src/gameitem.cpp 2022-01-03 22:44:03.000000000 +0100 +++ new/kmahjongg-21.12.2/src/gameitem.cpp 2022-01-29 00:07:20.000000000 +0100 @@ -9,6 +9,7 @@ // Qt #include <QGraphicsSceneMouseEvent> +#include <QGuiApplication> #include <QPainter> #include <QPixmap> #include <QTimer> @@ -66,8 +67,9 @@ int newPosX = position.x() + getShadowDeltaX(); int newPosY = position.y() + getShadowDeltaY(); - if ((newPosX < 0 || newPosX > m_selPix->width()) || - (newPosY < 0 || newPosY > m_selPix->height())) { + const qreal dpr = qApp->devicePixelRatio(); + if ((newPosX < 0 || newPosX > m_selPix->width() / dpr) || + (newPosY < 0 || newPosY > m_selPix->height() / dpr)) { return true; } @@ -76,12 +78,14 @@ int GameItem::getShadowDeltaX() const { - return (m_angle == NE || m_angle == SE) ? 1 * m_shadowWidth : -1 * m_shadowWidth; + const qreal dpr = qApp->devicePixelRatio(); + return ((m_angle == NE || m_angle == SE) ? 1 * m_shadowWidth : -1 * m_shadowWidth) / dpr; } int GameItem::getShadowDeltaY() const { - return (m_angle == NW || m_angle == NE) ? 1 * m_shadowHeight : -1 * m_shadowHeight; + const qreal dpr = qApp->devicePixelRatio(); + return ((m_angle == NW || m_angle == NE) ? 1 * m_shadowHeight : -1 * m_shadowHeight) / dpr; } void GameItem::prepareForGeometryChange() @@ -91,8 +95,9 @@ void GameItem::updateFaceOffset() { - int horizontalOffset = m_selPix->width() - m_facePix->width(); - int verticalOffset = m_selPix->height() - m_facePix->height(); + const qreal dpr = qApp->devicePixelRatio(); + int horizontalOffset = (m_selPix->width() - m_facePix->width()) / dpr; + int verticalOffset = (m_selPix->height() - m_facePix->height()) / dpr; switch (m_angle) { case NW: @@ -162,7 +167,8 @@ QRectF GameItem::boundingRect() const { - return QRectF(QPointF(0.0, 0.0), m_selPix->size()); + const qreal dpr = qApp->devicePixelRatio(); + return QRectF(QPointF(0.0, 0.0), m_selPix->size() / dpr); } QRectF GameItem::rect() const
