aboutsummaryrefslogtreecommitdiff
path: root/src/library_glut.js
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-04-05 14:40:22 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-04-05 14:40:22 -0400
commite9dc897fb280a9150b7b42ac4999d70c0809c33d (patch)
tree998ed01755b95be377555c649a472d589654aedd /src/library_glut.js
parent9bedb03c36de93f9c8bb58dc0f56434820f3b7b3 (diff)
Resize canvas to 1x1 when GLUT app exits
Diffstat (limited to 'src/library_glut.js')
-rw-r--r--src/library_glut.js1
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);