You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hajimehoshi
changed the title
ScreenSizeInFullscreen() panics on browsers
ebiten: calling ScreenSizeInFullscreen before RunGame panics on browsers
Apr 30, 2024
hajimehoshi
changed the title
ebiten: calling ScreenSizeInFullscreen before RunGame panics on browsers
ebiten: calling ScreenSizeInFullscreen panics on browsers
Apr 30, 2024
Ebitengine Version
v2.7.2
Operating System
Go Version (
go version
)go1.22.2
What steps will reproduce the problem?
Compiling and executing the following program on the browser (e.g.
$env:GOOS="js"; $env:GOARCH="wasm"; go build -o exec.wasm main.go
):I also tried with
runtime.LockOSThread()
, go1.18.10, both Firefox and Chrome, etc.; everything panics. UsingMonitor().Size()
works, though.Sample Firefox error output:
What is the expected result?
No panic.
What happens instead?
Panic.
Anything else you feel useful to add?
No response
The text was updated successfully, but these errors were encountered: