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

Boudewijn Rempt <b...@valdyas.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/1d8b94e3c |hics/krita/commit/d61854206
                   |545b5d2ac98242dd14c6c0becb1 |d985ecfa6530537fdb1f010e0b2
                   |7071                        |2bb0

--- Comment #8 from Boudewijn Rempt <b...@valdyas.org> ---
Git commit d61854206d985ecfa6530537fdb1f010e0b22bb0 by Boudewijn Rempt, on
behalf of Agata Cacko.
Committed on 04/11/2020 at 08:23.
Pushed by rempt into branch 'krita/4.3'.

Draw reference images in high res on 4k display

Before this commit, reference images would be stored in a buffer
which size was not determined by the actual size of the area in pixels
which was available for the QPainter, but that size scaled down by
devicePixelRatioF(). Hence on high resolution displays all
reference images would look blurry and low-res.

This commit fixes this behaviour by introducing high-res buffer
and making sure that it takes the reference image from the mipmap
which size is the closest to the actual new size instead of the
one that is scaled down because of the UI scaling
(devicePixelRatioF()).

I also changed the way the pixel art images (or any images that are being
enlarged)
are drawn: now they use FastTransformation instead of SmoothTransformation.
(cherry picked from commit 1d8b94e3c545b5d2ac98242dd14c6c0becb17071)

M  +6    -2    libs/brush/kis_qimage_pyramid.cpp
M  +1    -1    libs/brush/kis_qimage_pyramid.h
M  +14   -3    libs/ui/KisReferenceImage.cpp
M  +9    -3    libs/ui/KisReferenceImagesDecoration.cpp

https://invent.kde.org/graphics/krita/commit/d61854206d985ecfa6530537fdb1f010e0b22bb0

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

Reply via email to