Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package plasma-framework for openSUSE:Factory checked in at 2021-08-23 10:07:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plasma-framework (Old) and /work/SRC/openSUSE:Factory/.plasma-framework.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma-framework" Mon Aug 23 10:07:37 2021 rev:114 rq:912558 version:5.85.0 Changes: -------- --- /work/SRC/openSUSE:Factory/plasma-framework/plasma-framework.changes 2021-08-16 10:12:37.935024848 +0200 +++ /work/SRC/openSUSE:Factory/.plasma-framework.new.1899/plasma-framework.changes 2021-08-23 10:07:43.876277086 +0200 @@ -1,0 +2,7 @@ +Tue Aug 17 07:27:12 UTC 2021 - Antonio Larrosa <alarr...@suse.com> + +- Add patch from upstream to fix a regression in Plasma icon sizes + when using fractional scaling on X11: + * 0001-Fix-Plasma-non-Qt-icon-scaling-with-integer-scale-factors.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-Plasma-non-Qt-icon-scaling-with-integer-scale-factors.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plasma-framework.spec ++++++ --- /var/tmp/diff_new_pack.KMEJbd/_old 2021-08-23 10:07:46.132274454 +0200 +++ /var/tmp/diff_new_pack.KMEJbd/_new 2021-08-23 10:07:46.132274454 +0200 @@ -36,6 +36,8 @@ Source2: frameworks.keyring %endif Source99: baselibs.conf +# PATCH-FIX-UPSTREAM +Patch0: 0001-Fix-Plasma-non-Qt-icon-scaling-with-integer-scale-factors.patch BuildRequires: extra-cmake-modules >= %{_kf5_bugfix_version} BuildRequires: fdupes BuildRequires: kf5-filesystem ++++++ 0001-Fix-Plasma-non-Qt-icon-scaling-with-integer-scale-factors.patch ++++++ >From 837bb6975f6a0661d211107823b7587808fc3d4e Mon Sep 17 00:00:00 2001 From: Nate Graham <n...@kde.org> Date: Sun, 15 Aug 2021 09:33:10 -0600 Subject: [PATCH] Fix Plasma (non-Qt) icon scaling with integer scale factors An embarrassing error in 4edb830f53aac4833ece024df59441029b01fde6 caused the function which returns an appropriate scale factor for icons to both take and return integer values rather than floating point values, preventing it from working properly with any scale factor other than an integer scale factor (e.g. 200%). This commit fixes that issue. --- src/declarativeimports/core/units.cpp | 2 +- src/declarativeimports/core/units.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/core/units.cpp b/src/declarativeimports/core/units.cpp index 6788ed952..fbcc6d888 100644 --- a/src/declarativeimports/core/units.cpp +++ b/src/declarativeimports/core/units.cpp @@ -174,7 +174,7 @@ int Units::roundToIconSize(int size) } } -int Units::bestIconScaleForDevicePixelRatio(const int ratio) +qreal Units::bestIconScaleForDevicePixelRatio(const qreal ratio) { if (ratio < 1.5) { return 1; diff --git a/src/declarativeimports/core/units.h b/src/declarativeimports/core/units.h index c19cf0dd8..855738e7d 100644 --- a/src/declarativeimports/core/units.h +++ b/src/declarativeimports/core/units.h @@ -271,7 +271,7 @@ private: * Note that this function is only relevant when using Plasma scaling and * when using Qt scaling, it always returns 1. */ - static int bestIconScaleForDevicePixelRatio(const int ratio); + static qreal bestIconScaleForDevicePixelRatio(const qreal ratio); /** * @return The dpi-adjusted size for a given icon size -- GitLab