mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 22:17:48 -04:00
wallpaper: scale texture to physical pixels
- reverts a regression
This commit is contained in:
1 parent
ca39196f13
commit
c652659d54
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user