From 7b8ae76f26122262ac1bcbaa12436a0ea455f593 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 16 Jun 2022 12:05:09 +0900 Subject: [PATCH] ebiten: update comment about ScreenSizeInFullscreen for browsers Updates #2145 --- run.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.go b/run.go index 035fb5b75..3c232049d 100644 --- a/run.go +++ b/run.go @@ -205,8 +205,9 @@ func isRunGameEnded() bool { // 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. // -// On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size since an Ebitengine -// game should not know the outside of the window object. +// On browsers, ScreenSizeInFullscreen returns the 'window' (global object) size, not 'screen' size. +// 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. //