diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-26 12:05:13 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-26 12:11:15 +0200 |
commit | 793eb176a0c777d91941cb17386de0f5da981bac (patch) | |
tree | 3cf9760bda0d588a05ebe9dec9b7bd4dd610b37b /system | |
parent | e2d05d569d7848d15ddd956e5c456d81f7bf9292 (diff) |
Add new fields to EmscriptenFullscreenChangeEvent structure that report the new pixel sizes of the fullscreen element, as well as the whole screen size. These can be used to read and adjust the rendering canvas size appropriately when transitioning between fullscreen modes. Thanks to Joel Croteau for the suggestion at https://groups.google.com/forum/#!topic/emscripten-discuss/qaTrOXWv1Oc .
Bump version to 1.12.3 to update the cache after change to struct_info.json.
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/html5.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/include/emscripten/html5.h b/system/include/emscripten/html5.h index 06c647bf..6109d87f 100644 --- a/system/include/emscripten/html5.h +++ b/system/include/emscripten/html5.h @@ -388,9 +388,16 @@ typedef struct EmscriptenFullscreenChangeEvent { // Specifies if the current page has the ability to display elements fullscreen. EM_BOOL fullscreenEnabled; // The nodeName of the target HTML Element that is in full screen mode. See https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeName + // If isFullscreen is false, then nodeName, id and elementWidth/Height specify information about the element that just exited fullscreen mode. EM_UTF8 nodeName[128]; // The HTML Element ID of the target HTML element that is in full screen mode. EM_UTF8 id[128]; + // The new pixel size of the element that changed fullscreen status. + int elementWidth; + int elementHeight; + // The size of the whole screen, in pixels. + int screenWidth; + int screenHeight; } EmscriptenFullscreenChangeEvent; /* |