Hi, I'm seeing strange values for elementWidth and elementHeight when using the emscripten_set_fullscreenchange_callback() mechanism, which also differs between Chrome and Firefox (I'm testing on OSX10.10)
On Chrome, when the fullscreenchange callback is called, the elementWidth/Height is actually the previous size before the switch (here's my own debug output when the callback is called, ew/eh is elementWidth/height, sw/sh is screen width/height, also the elementWidth/Height never matches the actual screen size. The canvas size before the fullscreen switch is 400x400. Chrome (press fullscreen button on standard emscripten HTML shell, and in fullscreen mode, press Esc to switch back): emscFullscreenChanged: isFullscreen=yes, fullscreenEnabled=yes, ew=400, eh=400, sw=1280, sh=800 emscFullscreenChanged: isFullscreen=no, fullscreenEnabled=yes, ew=1263, eh=800, sw=1280, sh=800 In Firefox it's completely different again: When switching into fullscreen, the width is the expected width (1280), but the height is different (721 vs the expected 800), and when switching back the new value is completely strange (1040x800). Firefox (current Nightly): emscFullscreenChanged: isFullscreen=yes, fullscreenEnabled=yes, ew=1280, eh=721, sw=1280, sh=800 emscFullscreenChanged: isFullscreen=no, fullscreenEnabled=yes, ew=1040, eh=800, sw=1280, sh=800 Anyone know what's up with that? Whould I write a ticket? For now I can workaround that by using the screen size, and restoring the previous 'windowed size' when switching back from fullscreen. Cheers, -Floh. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
