Summary: | Reference image render bug when resizing under high DPI | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Alvin Wong <alvin> |
Component: | OpenGL Canvas | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla, tamtamy.tymona |
Priority: | NOR | ||
Version: | 4.4.2-beta2 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/25c1ec39738e28d0dd0a2f038ec9609569c378ab | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Screen capture of the problem
Test file with a reference image |
Description
Alvin Wong
2020-12-30 20:47:26 UTC
Created attachment 136585 [details]
Screen capture of the problem
I'm not sure if this is the same thing but I'm experiencing something similar on master on Linux Mint (screen scale = 2x).
When I'm moving a reference image, it sometimes gets cropped with transparency on the left side and on the bottom. I guess it might be because somewhere some calculations regarding the size forget about high dpi?
@Alvin is that how you experience it, too? (Check the video).
I think we can only solve this by porting our canvas decorations away from QPainter: it's a problem in the OpenGL QPainter engine. Created attachment 136586 [details]
Test file with a reference image
Reference image comes from pexels.com
(In reply to Tiar from comment #1) > Created attachment 136585 [details] > Screen capture of the problem > > I'm not sure if this is the same thing but I'm experiencing something > similar on master on Linux Mint (screen scale = 2x). > > When I'm moving a reference image, it sometimes gets cropped with > transparency on the left side and on the bottom. I guess it might be because > somewhere some calculations regarding the size forget about high dpi? > > @Alvin is that how you experience it, too? (Check the video). Yes, this is the same thing as I have been seeing. Git commit 0d1eef463ca945b41eda156e4214fe4151f510d4 by Alvin Wong. Committed on 19/02/2022 at 12:27. Pushed by alvinwong into branch 'master'. Fix reference image update on resizing in high DPI M +1 -1 libs/ui/KisReferenceImagesDecoration.cpp https://invent.kde.org/graphics/krita/commit/0d1eef463ca945b41eda156e4214fe4151f510d4 Git commit 25c1ec39738e28d0dd0a2f038ec9609569c378ab by Alvin Wong. Committed on 19/02/2022 at 12:28. Pushed by alvinwong into branch 'krita/5.0'. Fix reference image update on resizing in high DPI (cherry picked from commit 0d1eef463ca945b41eda156e4214fe4151f510d4) M +1 -1 libs/ui/KisReferenceImagesDecoration.cpp https://invent.kde.org/graphics/krita/commit/25c1ec39738e28d0dd0a2f038ec9609569c378ab |