mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-30 09:19:08 +00:00
Disabled dynamic scaling: only used on lockscreen
This commit is contained in:
@@ -120,11 +120,12 @@ Singleton {
|
||||
readonly property int designScreenWidth: 2560
|
||||
readonly property int designScreenHeight: 1440
|
||||
function dynamicScale(aScreen) {
|
||||
if (aScreen != null) {
|
||||
var ratioW = aScreen.width / designScreenWidth
|
||||
var ratioH = aScreen.height / designScreenHeight
|
||||
return Math.min(ratioW, ratioH)
|
||||
}
|
||||
return 1.0
|
||||
// if (aScreen != null) {
|
||||
// var ratioW = aScreen.width / designScreenWidth
|
||||
// var ratioH = aScreen.height / designScreenHeight
|
||||
// return Math.min(ratioW, ratioH)
|
||||
// }
|
||||
// return 1.0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user