mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: update comment about ScreenSizeInFullscreen for browsers
Updates #2145
This commit is contained in:
parent
acd70d6e34
commit
7b8ae76f26
5
run.go
5
run.go
@ -205,8 +205,9 @@ func isRunGameEnded() bool {
|
|||||||
// The adopted monitor is the 'current' monitor which the window belongs to.
|
// The adopted monitor is the 'current' monitor which the window belongs to.
|
||||||
// The returned value can be given to Run or SetSize function if the perfectly fit fullscreen is needed.
|
// The returned value can be given to Run or SetSize function if the perfectly fit fullscreen is needed.
|
||||||
//
|
//
|
||||||
// On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size since an Ebitengine
|
// On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size.
|
||||||
// game should not know the outside of the window object.
|
// ScreenSizeInFullscreen's returning value is different from the actual screen size and this is a known issue (#2145).
|
||||||
|
// For browsers, it is recommended to use Screen API (https://developer.mozilla.org/en-US/docs/Web/API/Screen) if needed.
|
||||||
//
|
//
|
||||||
// On mobiles, ScreenSizeInFullscreen returns (0, 0) so far.
|
// On mobiles, ScreenSizeInFullscreen returns (0, 0) so far.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user