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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user