mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
parent
c9863284cf
commit
62bbb8818e
10
window.go
10
window.go
@ -184,14 +184,20 @@ func fixWindowPosition(width, height int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WindowSize returns the window size. On fullscreen mode, WindowSize returns the original window size.
|
// WindowSize returns the window size on desktops.
|
||||||
|
// WindowSize returns (0, 0) on other environments.
|
||||||
|
//
|
||||||
|
// On fullscreen mode, WindowSize returns the original window size.
|
||||||
//
|
//
|
||||||
// WindowSize is concurrent-safe.
|
// WindowSize is concurrent-safe.
|
||||||
func WindowSize() (int, int) {
|
func WindowSize() (int, int) {
|
||||||
return uiDriver().WindowSize()
|
return uiDriver().WindowSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWindowSize sets the window size. On fullscreen mode, SetWindowSize sets the original window size.
|
// SetWindowSize sets the window size on desktops.
|
||||||
|
// SetWindowSize does nothing on other environments.
|
||||||
|
//
|
||||||
|
// On fullscreen mode, SetWindowSize sets the original window size.
|
||||||
//
|
//
|
||||||
// SetWindowSize panics if width or height is not a positive number.
|
// SetWindowSize panics if width or height is not a positive number.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user