ebiten: update comment about ScreenSizeInFullscreen for browsers

Updates #2145
This commit is contained in:
Hajime Hoshi 2022-06-16 12:05:09 +09:00
parent acd70d6e34
commit 7b8ae76f26

5
run.go
View File

@ -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.
// //