diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-15 21:31:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-15 21:31:33 -0700 |
commit | 700d05119667a11111cdbf21c9d421a7e60fb248 (patch) | |
tree | 586b963219d203216961acce8f9d5312d584e3d5 | |
parent | 4e0c5a89b387d5f4ca8248c8b31e2db136652a64 (diff) | |
parent | 9b908451c9fb68341f6c69c98e36ecb891e66968 (diff) |
Merge pull request #1527 from inolen/setcanvassize
export setCanvasSize to Module object
-rw-r--r-- | src/library_browser.js | 1 |
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() }', |