mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
devicescale: Add other desktops
This commit is contained in:
parent
75f5cbd45a
commit
ee87a0fd71
@ -32,6 +32,9 @@ const (
|
|||||||
desktopUnknown desktop = iota
|
desktopUnknown desktop = iota
|
||||||
desktopGnome
|
desktopGnome
|
||||||
desktopCinnamon
|
desktopCinnamon
|
||||||
|
desktopUnity
|
||||||
|
desktopKDE
|
||||||
|
desktopXFCE
|
||||||
)
|
)
|
||||||
|
|
||||||
func currentDesktop() desktop {
|
func currentDesktop() desktop {
|
||||||
@ -41,6 +44,12 @@ func currentDesktop() desktop {
|
|||||||
return desktopGnome
|
return desktopGnome
|
||||||
case "X-Cinnamon":
|
case "X-Cinnamon":
|
||||||
return desktopCinnamon
|
return desktopCinnamon
|
||||||
|
case "Unity":
|
||||||
|
return desktopUnity
|
||||||
|
case "KDE":
|
||||||
|
return desktopKDE
|
||||||
|
case "XFCE":
|
||||||
|
return desktopXFCE
|
||||||
default:
|
default:
|
||||||
return desktopUnknown
|
return desktopUnknown
|
||||||
}
|
}
|
||||||
@ -100,6 +109,15 @@ func impl() float64 {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
|
case desktopUnity:
|
||||||
|
// TODO: Implement
|
||||||
|
return 1
|
||||||
|
case desktopKDE:
|
||||||
|
// TODO: Implement
|
||||||
|
return 1
|
||||||
|
case desktopXFCE:
|
||||||
|
// TODO: Implement
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user