mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 11:40:00 +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 designScreenWidth: 2560
|
||||||
readonly property int designScreenHeight: 1440
|
readonly property int designScreenHeight: 1440
|
||||||
function dynamicScale(aScreen) {
|
function dynamicScale(aScreen) {
|
||||||
if (aScreen != null) {
|
|
||||||
var ratioW = aScreen.width / designScreenWidth
|
|
||||||
var ratioH = aScreen.height / designScreenHeight
|
|
||||||
return Math.min(ratioW, ratioH)
|
|
||||||
}
|
|
||||||
return 1.0
|
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