Bring back the .min().

May save a few bytes with extremely small source images. Not sure why
one would want to display tiny wallpapers, but you never know.
This commit is contained in:
Sébastien Atoch 2025-08-02 22:34:21 -04:00
parent 5f97b4217a
commit e2d02afc9a

View file

@ -140,8 +140,8 @@ PanelWindow {
smooth: true
mipmap: true
// Limit memory usage
sourceSize.width: 480
sourceSize.height: 270
sourceSize.width: Math.min(width, 480)
sourceSize.height: Math.min(height, 270)
}
MouseArea {
anchors.fill: parent