https://bugs.kde.org/show_bug.cgi?id=391315

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/fram |https://invent.kde.org/fram
                   |eworks/kirigami/-/commit/3c |eworks/kirigami/-/commit/0a
                   |8de8d17dd16dd97866576adbdb8 |6cb3ecda707e6e4bb40a7344d9c
                   |456840fc1cf                 |3a842075f2f

--- Comment #17 from Marco Martin <[email protected]> ---
Git commit 0a6cb3ecda707e6e4bb40a7344d9c3a842075f2f by Marco Martin.
Committed on 17/06/2026 at 07:25.
Pushed by mart into branch 'Frameworks/6.24'.

primitives: Base Icon's node size on icon size, not item size

To avoid artifacts, we need to make sure we try as best as possible to
match the rendered geometry to texture size. Any deviation results in
the GPU having to do interpolation on the texture which can lead to
artifacts like blurriness.

Since we already calculate the expected size we paint at in
updatePaintedSize(), we can use that value as size and only need to
center the resulting geometry. The shader will then take care of
ensuring we don't end up at fractional pixels.
Related: bug 518041, bug 519129, bug 408215


(cherry picked from commit 3c8de8d17dd16dd97866576adbdb8456840fc1cf)

Co-authored-by: Arjen Hiemstra <[email protected]>

M  +4    -16   src/primitives/icon.cpp

https://invent.kde.org/frameworks/kirigami/-/commit/0a6cb3ecda707e6e4bb40a7344d9c3a842075f2f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to