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

Johannes Zarl-Zierl <johan...@zarl-zierl.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/kphotoalbum/-/commit/0
                   |                            |883c80af5d5d545c13d7e707cac
                   |                            |362456073ec1
             Status|REPORTED                    |RESOLVED

--- Comment #1 from Johannes Zarl-Zierl <johan...@zarl-zierl.at> ---
Git commit 0883c80af5d5d545c13d7e707cac362456073ec1 by Johannes Zarl-Zierl.
Committed on 24/12/2023 at 00:14.
Pushed by johanneszarl into branch 'master'.

Use the correct background color in viewer for zoomed images

When zooming in the viewer window, such that there is a border outside
of the image itself, that border was until now drawn black instead of
the QPalette::base() color.
The reason for this is that the zoomed image is actually a copy of the
loaded image with those borders.
Adding an alpha channel to the image fixes the issue.

It would possibly be a better fix to draw a scaled image in
ImageDisplay::paintEvent instead, but that would be a major rewrite of
the ImageDisplay code.

M  +1    -0    CHANGELOG.md
M  +4    -1    Viewer/ImageDisplay.cpp

https://invent.kde.org/graphics/kphotoalbum/-/commit/0883c80af5d5d545c13d7e707cac362456073ec1

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

Reply via email to