1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -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 b1406fc49a
commit 4ffa06945a

View File

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