mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
devicescale: Fix scaling on UNIX
This commit is contained in:
parent
9ec0785203
commit
eac5564342
@ -65,11 +65,15 @@ func cinnamonScale() float64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func impl() float64 {
|
func impl() float64 {
|
||||||
if s := gnomeScale(); s != 0 {
|
scale := 0.0
|
||||||
return s
|
if s := gnomeScale(); s > scale {
|
||||||
|
scale = s
|
||||||
}
|
}
|
||||||
if s := cinnamonScale(); s != 0 {
|
if s := cinnamonScale(); s > scale {
|
||||||
return s
|
scale = s
|
||||||
}
|
}
|
||||||
|
if scale == 0 {
|
||||||
return 1
|
return 1
|
||||||
|
}
|
||||||
|
return scale
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user