[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-11-04 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=48

Boudewijn Rempt  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  ---
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-2libs/brush/kis_qimage_pyramid.cpp
M  +1-1libs/brush/kis_qimage_pyramid.h
M  +14   -3libs/ui/KisReferenceImage.cpp
M  +9-3libs/ui/KisReferenceImagesDecoration.cpp

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

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-11-04 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=48

--- Comment #9 from Boudewijn Rempt  ---
Git commit d4556045bed9c340a73a9a7d8b8c254e353a3584 by Boudewijn Rempt, on
behalf of Agata Cacko.
Committed on 04/11/2020 at 08:23.
Pushed by rempt into branch 'krita/4.3'.

Remove the workaround border from the ref images

Before this commit, Reference Images would use the same workaround
as the brush tips since they all use KisQImagePyramid.
However it is not needed for Reference Images and creates
an empty margin around the images.

This commit adds a new method to KisQImagePyramid to get the image
without the workaround border.
(The workaround is just 1 pixel of transparency around the whole edge
that KisQImagePyramid is returning as the closest mipmap image).
(cherry picked from commit fb247f6a6d87a3faf90f75a00a91d4be1335978c)

M  +9-0libs/brush/kis_qimage_pyramid.cpp
M  +2-0libs/brush/kis_qimage_pyramid.h
M  +1-1libs/ui/KisReferenceImage.cpp

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

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-28 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=48

--- Comment #6 from Boudewijn Rempt  ---
Git commit fb247f6a6d87a3faf90f75a00a91d4be1335978c by Boudewijn Rempt, on
behalf of Agata Cacko.
Committed on 28/10/2020 at 09:24.
Pushed by rempt into branch 'master'.

Remove the workaround border from the ref images

Before this commit, Reference Images would use the same workaround
as the brush tips since they all use KisQImagePyramid.
However it is not needed for Reference Images and creates
an empty margin around the images.

This commit adds a new method to KisQImagePyramid to get the image
without the workaround border.
(The workaround is just 1 pixel of transparency around the whole edge
that KisQImagePyramid is returning as the closest mipmap image).

M  +9-0libs/brush/kis_qimage_pyramid.cpp
M  +2-0libs/brush/kis_qimage_pyramid.h
M  +1-1libs/ui/KisReferenceImage.cpp

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

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-28 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=48

Boudewijn Rempt  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/commit/1d8b94e3c
   ||545b5d2ac98242dd14c6c0becb1
   ||7071

--- Comment #7 from Boudewijn Rempt  ---
Git commit 1d8b94e3c545b5d2ac98242dd14c6c0becb17071 by Boudewijn Rempt, on
behalf of Agata Cacko.
Committed on 28/10/2020 at 09:24.
Pushed by rempt into branch 'master'.

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.

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

https://invent.kde.org/graphics/krita/commit/1d8b94e3c545b5d2ac98242dd14c6c0becb17071

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-26 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=48

--- Comment #5 from Tymond  ---
Git commit 5c6a7229bc61aa075416540b4d0da1a4e51dc293 by Agata Cacko.
Committed on 26/10/2020 at 18:13.
Pushed by tymond into branch 'master'.

Fix seexpr icon to be high res on high dpi displays

Before this commit, the icon of the seexpr script would be drawn in
a low resolution (a result of UI scaling). After this commit
the icon is drawn in a highest possible resolution.

M  +4-1plugins/generators/seexpr/kis_wdg_seexpr.cpp

https://invent.kde.org/graphics/krita/commit/5c6a7229bc61aa075416540b4d0da1a4e51dc293

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-20 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=48

--- Comment #4 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/graphics/krita/-/merge_requests/545

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-20 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=48

Tymond  changed:

   What|Removed |Added

   Assignee|krita-bugs-n...@kde.org |tamtamy.tym...@gmail.com
 Status|CONFIRMED   |ASSIGNED

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-16 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=48

--- Comment #3 from Tymond  ---
Created attachment 132447
  --> https://bugs.kde.org/attachment.cgi?id=132447=edit
Screenshot showing the difference on 4k display (ref image on the right)

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2020-10-16 Thread Tymond
https://bugs.kde.org/show_bug.cgi?id=48

Tymond  changed:

   What|Removed |Added

 CC||tamtamy.tym...@gmail.com

--- Comment #2 from Tymond  ---
Created attachment 132446
  --> https://bugs.kde.org/attachment.cgi?id=132446=edit
File showing the difference

I can see it clearly with a 100x100 file attached.

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2019-08-27 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=48

Boudewijn Rempt  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED
 CC||b...@valdyas.org

--- Comment #1 from Boudewijn Rempt  ---
Hi Aaron,

I'm not sure I can actually see this, but it's probably caused by the way the
canvas handles hidpi internally. I'm not sure what we can do about it.

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

[krita] [Bug 411118] Reference image renders at half native resolution on high DPI displays.

2019-08-23 Thread Aaron Lavarnway
https://bugs.kde.org/show_bug.cgi?id=48

Aaron Lavarnway  changed:

   What|Removed |Added

 CC||i...@ralek.art

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