aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-15 12:52:42 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-15 12:52:42 -0700
commit9b908451c9fb68341f6c69c98e36ecb891e66968 (patch)
treecf110fe479c98d9a45139ad9cf1bbaaefaf723d1 /src
parent19047555b54a8190a927e77f2d1c73410ad4fd0a (diff)
expose setCanvasSize
Diffstat (limited to 'src')
-rw-r--r--src/library_browser.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index f65791e4..511e158e 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -6,6 +6,7 @@ mergeInto(LibraryManager.library, {
$Browser__deps: ['$PATH'],
$Browser__postset: 'Module["requestFullScreen"] = function(lockPointer, resizeCanvas) { Browser.requestFullScreen(lockPointer, resizeCanvas) };\n' + // exports
'Module["requestAnimationFrame"] = function(func) { Browser.requestAnimationFrame(func) };\n' +
+ 'Module["setCanvasSize"] = function(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };\n' +
'Module["pauseMainLoop"] = function() { Browser.mainLoop.pause() };\n' +
'Module["resumeMainLoop"] = function() { Browser.mainLoop.resume() };\n' +
'Module["getUserMedia"] = function() { Browser.getUserMedia() }',