1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

wallpaper: scale texture to physical pixels

- reverts a regression
This commit is contained in:
bbedward
2025-12-13 08:43:46 -05:00
parent ca39196f13
commit c652659d54

View File

@@ -216,8 +216,9 @@ Variants {
} }
readonly property int maxTextureSize: 8192 readonly property int maxTextureSize: 8192
property int textureWidth: Math.min(modelData.width, maxTextureSize) property real screenScale: CompositorService.getScreenScale(modelData)
property int textureHeight: Math.min(modelData.height, maxTextureSize) property int textureWidth: Math.min(Math.round(modelData.width * screenScale), maxTextureSize)
property int textureHeight: Math.min(Math.round(modelData.height * screenScale), maxTextureSize)
Image { Image {
id: currentWallpaper id: currentWallpaper