| Summary: | Background color not filling in entire window | ||
|---|---|---|---|
| Product: | [Applications] gwenview | Reporter: | Andre Kalouguine <andre.kalouguine.ak> |
| Component: | general | Assignee: | Gwenview Bugs <gwenview-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | 1900011604, bizyaev, justin, me, viz, zawertun |
| Priority: | NOR | ||
| Version First Reported In: | 24.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/gwenview/-/commit/f1a4d7f82abd2bd31d185074509693d17acd944c | Version Fixed/Implemented In: | 25.12 |
| Sentry Crash Report: | |||
| Attachments: |
A video recording of the problem
Patch Gwenview displaying after patch applied |
||
|
Description
Andre Kalouguine
2024-09-21 12:17:15 UTC
Can confirm this issue on git master using the provided sample file and a white background. Same here with the checkerboard background. *** Bug 460313 has been marked as a duplicate of this bug. *** I can confirm this bug. The error is that width and height on lines 58 and 59 here https://invent.kde.org/graphics/gwenview/-/blob/6d6dc993be05d8627086464305d4f00815de9845/lib/documentview/alphabackgrounditem.cpp#L58 accounts `devicePixelRatio()` value, although `painter->drawTiledPixmap()` already draws using `devicePixelRatio()`. Url for testing bug: https://raw.githubusercontent.com/amv213/ComponentLibrary/6446e922464240e3de5fcea8aa30266d0c46114c/imgs/2D_demo.png. One line command to test it from console: ``` gwenview https://raw.githubusercontent.com/amv213/ComponentLibrary/6446e922464240e3de5fcea8aa30266d0c46114c/imgs/2D_demo.png ``` Created attachment 177488 [details]
Patch
Created attachment 177489 [details]
Gwenview displaying after patch applied
Is it displaying OK?
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/313 *** Bug 504953 has been marked as a duplicate of this bug. *** The patch doesn't work for me since I have 175% scale, so I created https://invent.kde.org/graphics/gwenview/-/merge_requests/343 to use painter->device()->devicePixelRatioF() to get the correct scale factor This has now been fixed by Wenxuan Zhao in https://invent.kde.org/graphics/gwenview/-/merge_requests/343! |