Summary: | Color profile selector broken display on HiDPI (both the "horseshoe" and the curve chart) | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Tiar <tamtamy.tymona> |
Component: | Color models | Assignee: | amyspark <amy> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amy, halla |
Priority: | NOR | Keywords: | regression |
Version: | 5.1.0-beta1 | ||
Target Milestone: | --- | ||
Platform: | Mint (Ubuntu based) | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/krita/commit/0f1b3ad5f88ab769322cfe80e5d2c4c1da9d317b | Version Fixed In: | |
Sentry Crash Report: |
Description
Tiar
2022-07-19 22:36:02 UTC
Versions this bug has been present (bad): - 88b7b8b824 (master ~ June 2nd 2022) - 5.1.0-beta1 - 5.1.0-beta2 Versions this bug hasn't been present (good): - 5214230 (master ~ November 4th 2019) - 5.0.6 Cannot reproduce on Windows (commit e747146, with a 1080p SD screen) but I can on macOS (commit a40c361, with a Retina screen). I think I know where this may have broken: https://invent.kde.org/graphics/krita/-/merge_requests/1317, where I added the devicePixelRatioF() calls to account for HiDPI scaling. Tiar, since I think your screen is HiDPI, perhaps you can try fixing it by removing those lines? Update: could reproduce by manually changing "Make everything bigger" to 125% or higher on Windows. It's indeed the HiDPI changes that cause it, the pixmap size and the painting do not account for the device pixel ratio. The easiest fix (for the sake of 5.1) would be to remove the lines involving devicePixelRatioF() in KisCieTongueWidget and KisToneCurveWidget. The best fix (one I've not been able to figure out fully) would be to properly size and scale the pixmaps. I was playing with this last night, but couldn't achieve the latter; I end up with the pixmaps not stretching correctly and getting chopped in the bottom. A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1527 Git commit f1aa81a32cd3a6338c25df282b392a5bc3f8c228 by Halla Rempt, on behalf of L. E. Segovia. Committed on 02/08/2022 at 06:46. Pushed by rempt into branch 'cherry-pick-7af93a6d'. Color Space Selector: temporarily remove the DPI scaling (cherry picked from commit 7af93a6dde1db57dbb159c8a058342f2a4128bde) M +3 -6 libs/ui/widgets/kis_cie_tongue_widget.cpp M +0 -3 libs/ui/widgets/kis_tone_curve_widget.cpp https://invent.kde.org/graphics/krita/commit/f1aa81a32cd3a6338c25df282b392a5bc3f8c228 Git commit 9659aea93709c87165c88ec58c076bd860eb02eb by Halla Rempt, on behalf of L. E. Segovia. Committed on 02/08/2022 at 06:47. Pushed by rempt into branch 'krita/5.1'. Color Space Selector: temporarily remove the DPI scaling (cherry picked from commit 7af93a6dde1db57dbb159c8a058342f2a4128bde) M +3 -6 libs/ui/widgets/kis_cie_tongue_widget.cpp M +0 -3 libs/ui/widgets/kis_tone_curve_widget.cpp https://invent.kde.org/graphics/krita/commit/9659aea93709c87165c88ec58c076bd860eb02eb Git commit 0f1b3ad5f88ab769322cfe80e5d2c4c1da9d317b by Halla Rempt, on behalf of L. E. Segovia. Committed on 02/08/2022 at 06:47. Pushed by rempt into branch 'krita/5.1'. Color Space Selector: fix HiDPI scaling (cherry picked from commit 44e35973399e2ad596aec02b75b47310a0405d4f) M +30 -27 libs/ui/widgets/kis_cie_tongue_widget.cpp M +9 -7 libs/ui/widgets/kis_tone_curve_widget.cpp https://invent.kde.org/graphics/krita/commit/0f1b3ad5f88ab769322cfe80e5d2c4c1da9d317b |