diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 14:40:22 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 14:40:22 -0400 |
commit | e9dc897fb280a9150b7b42ac4999d70c0809c33d (patch) | |
tree | 998ed01755b95be377555c649a472d589654aedd /src/library_glut.js | |
parent | 9bedb03c36de93f9c8bb58dc0f56434820f3b7b3 (diff) |
Resize canvas to 1x1 when GLUT app exits
Diffstat (limited to 'src/library_glut.js')
-rw-r--r-- | src/library_glut.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_glut.js b/src/library_glut.js index 6a302333..51d87a34 100644 --- a/src/library_glut.js +++ b/src/library_glut.js @@ -436,6 +436,7 @@ var LibraryGLUT = { window.removeEventListener("mousemove", GLUT.onMousemove, true); window.removeEventListener("mousedown", GLUT.onMouseButtonDown, true); window.removeEventListener("mouseup", GLUT.onMouseButtonUp, true); + Module["canvas"].width = Module["canvas"].height = 1; } }); _glutReshapeWindow(Module['canvas'].width, Module['canvas'].height); |