devicescale: Fix scaling on UNIX

This commit is contained in:
Hajime Hoshi 2018-01-03 23:35:50 +09:00
parent 9ec0785203
commit eac5564342

View File

@ -65,11 +65,15 @@ func cinnamonScale() float64 {
}
func impl() float64 {
if s := gnomeScale(); s != 0 {
return s
scale := 0.0
if s := gnomeScale(); s > scale {
scale = s
}
if s := cinnamonScale(); s != 0 {
return s
if s := cinnamonScale(); s > scale {
scale = s
}
return 1
if scale == 0 {
return 1
}
return scale
}