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:
parent
5f97b4217a
commit
e2d02afc9a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue