Fixing app templating after refactor

This commit is contained in:
ItsLemmy
2025-11-08 20:50:21 -05:00
parent 355271768c
commit 168bf54f41
28 changed files with 113 additions and 101 deletions
+2 -2
View File
@@ -332,10 +332,10 @@ Variants {
var dim = Qt.size(0, 0)
if (screenWidth >= screenHeight) {
const w = Math.min(screenWidth, wpWidth)
dim = Qt.size(w, w / imageAspectRatio)
dim = Qt.size(Math.round(w), Math.round(w / imageAspectRatio))
} else {
const h = Math.min(screenHeight, wpHeight)
dim = Qt.size(h * imageAspectRatio, h)
dim = Qt.size(Math.round(h * imageAspectRatio), Math.round(h))
}
Logger.d("Background", `Wallpaper resized on ${modelData.name} ${screenWidth}x${screenHeight} @ ${compositorScale}x`, "src:", wpWidth, wpHeight, "dst:", dim.width, dim.height)