Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libkdegames for openSUSE:Factory checked in at 2022-02-04 21:48:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libkdegames (Old) and /work/SRC/openSUSE:Factory/.libkdegames.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libkdegames" Fri Feb 4 21:48:41 2022 rev:120 rq:951140 version:21.12.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libkdegames/libkdegames.changes 2022-01-11 21:23:21.565131426 +0100 +++ /work/SRC/openSUSE:Factory/.libkdegames.new.1898/libkdegames.changes 2022-02-04 21:51:25.791551200 +0100 @@ -1,0 +2,10 @@ +Tue Feb 1 13:03:48 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr> + +- 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: + * Be HiDPI aware + +------------------------------------------------------------------- Old: ---- libkdegames-21.12.1.tar.xz libkdegames-21.12.1.tar.xz.sig New: ---- libkdegames-21.12.2.tar.xz libkdegames-21.12.2.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libkdegames.spec ++++++ --- /var/tmp/diff_new_pack.NS0A43/_old 2022-02-04 21:51:28.439532951 +0100 +++ /var/tmp/diff_new_pack.NS0A43/_new 2022-02-04 21:51:28.447532896 +0100 @@ -20,7 +20,7 @@ %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')} %bcond_without released Name: libkdegames -Version: 21.12.1 +Version: 21.12.2 Release: 0 Summary: General Data for KDE Games License: GPL-2.0-or-later ++++++ libkdegames-21.12.1.tar.xz -> libkdegames-21.12.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libkdegames-21.12.1/po/zh_CN/libkdegames5.po new/libkdegames-21.12.2/po/zh_CN/libkdegames5.po --- old/libkdegames-21.12.1/po/zh_CN/libkdegames5.po 2022-01-04 01:19:34.000000000 +0100 +++ new/libkdegames-21.12.2/po/zh_CN/libkdegames5.po 2022-02-01 01:10:51.000000000 +0100 @@ -12,7 +12,7 @@ "Project-Id-Version: kdeorg\n" "Report-Msgid-Bugs-To: https://bugs.kde.org\n" "POT-Creation-Date: 2021-11-03 00:17+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" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libkdegames-21.12.1/src/kgamerenderer.cpp new/libkdegames-21.12.2/src/kgamerenderer.cpp --- old/libkdegames-21.12.1/src/kgamerenderer.cpp 2021-11-06 02:51:16.000000000 +0100 +++ new/libkdegames-21.12.2/src/kgamerenderer.cpp 2021-12-31 00:21:30.000000000 +0100 @@ -13,7 +13,7 @@ #include "kgtheme.h" #include "kgthemeprovider.h" // Qt -#include <QCoreApplication> +#include <QGuiApplication> #include <QDateTime> #include <QFileInfo> #include <QScopedPointer> @@ -428,7 +428,9 @@ return; } const QString elementKey = spriteFrameKey(spec.spriteKey, spec.frame); - QString cacheKey = m_sizePrefix.arg(spec.size.width()).arg(spec.size.height()) + elementKey; + const qreal dpr = qApp->devicePixelRatio(); + const QSize size = spec.size * dpr; + QString cacheKey = m_sizePrefix.arg(size.width()).arg(size.height()) + elementKey; QHash<QColor, QColor>::const_iterator it1 = spec.customColors.constBegin(), it2 = spec.customColors.constEnd(); static const QString colorSuffix(QStringLiteral( "-%1-%2" )); for (; it1 != it2; ++it1) @@ -453,7 +455,9 @@ QHash<QString, QPixmap>::const_iterator it = m_pixmapCache.constFind(cacheKey); if (it != m_pixmapCache.constEnd()) { - requestPixmap__propagateResult(it.value(), client, synchronousResult); + QPixmap p = it.value(); + p.setDevicePixelRatio(dpr); + requestPixmap__propagateResult(p, client, synchronousResult); return; } //try to serve from low-speed cache @@ -462,6 +466,7 @@ QPixmap pix; if (m_imageCache->findPixmap(cacheKey, &pix)) { + pix.setDevicePixelRatio(dpr); m_pixmapCache.insert(cacheKey, pix); requestPixmap__propagateResult(pix, client, synchronousResult); return; @@ -478,6 +483,7 @@ job->cacheKey = cacheKey; job->elementKey = elementKey; job->spec = spec; + job->spec.size = size; const bool synchronous = !client; if (synchronous || !(m_strategies & KGameRenderer::UseRenderingThreads)) { @@ -497,8 +503,10 @@ void KGameRendererPrivate::jobFinished(KGRInternal::Job* job, bool isSynchronous) { //read job + const qreal dpr = qApp->devicePixelRatio(); const QString cacheKey = job->cacheKey; - const QImage result = job->result; + QImage result = job->result; + result.setDevicePixelRatio(dpr); delete job; //check who wanted this pixmap m_pendingRequests.removeAll(cacheKey);