Skip to content

Commit 4ffa069

Browse files
committed
wallpaper: scale texture to physical pixels - reverts a regression
1 parent b1406fc commit 4ffa069

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quickshell/Modules/WallpaperBackground.qml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@ Variants {
216216
}
217217

218218
readonly property int maxTextureSize: 8192
219-
property int textureWidth: Math.min(modelData.width, maxTextureSize)
220-
property int textureHeight: Math.min(modelData.height, maxTextureSize)
219+
property real screenScale: CompositorService.getScreenScale(modelData)
220+
property int textureWidth: Math.min(Math.round(modelData.width * screenScale), maxTextureSize)
221+
property int textureHeight: Math.min(Math.round(modelData.height * screenScale), maxTextureSize)
221222

222223
Image {
223224
id: currentWallpaper

0 commit comments

Comments
 (0)