LockScreen: fixed multi-monitor setup!

This commit is contained in:
LemmyCook 2025-08-21 23:15:41 -04:00
parent 8f829da5cb
commit d135139100
2 changed files with 261 additions and 262 deletions

View file

@ -43,8 +43,11 @@ Singleton {
readonly property int designScreenHeight: 1440
function dynamicScale(aScreen) {
var ratioW = aScreen.width / designScreenWidth
var ratioH = aScreen.height / designScreenHeight
return Math.min(ratioW, ratioH)
if (aScreen != null) {
var ratioW = aScreen.width / designScreenWidth
var ratioH = aScreen.height / designScreenHeight
return Math.min(ratioW, ratioH)
}
return 1.0
}
}