aboutsummaryrefslogtreecommitdiff
path: root/system/include
diff options
context:
space:
mode:
authorToadKing <toadking@toadking.com>2013-08-25 00:32:05 -0400
committerToadKing <toadking@toadking.com>2013-08-25 00:32:05 -0400
commit42c0bcffe65ebde4264e4915875055a2350a878f (patch)
tree13ef28cbcc50cd5af624142e1a6481026de5d8b2 /system/include
parente3a06c12b14de8c182c8de09343409568f749ff9 (diff)
implement emscripten_get_canvas_size
Diffstat (limited to 'system/include')
-rw-r--r--system/include/emscripten/emscripten.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index 1ed4c721..1b9a8f25 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -170,6 +170,12 @@ void emscripten_hide_mouse();
void emscripten_set_canvas_size(int width, int height);
/*
+ * Get the current pixel width and height of the <canvas> element
+ * as well as whether the canvas is fullscreen or not.
+ */
+void emscripten_get_canvas_size(int *width, int *height, int *isFullscreen);
+
+/*
* Returns the highest-precision representation of the
* current time that the browser provides. This uses either
* Date.now or performance.now. The result is *not* an