aboutsummaryrefslogtreecommitdiff
path: root/src/library_glut.js
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-04-05 02:34:32 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-04-05 02:34:32 -0400
commitca4340eae0091a1cc823048bedee4adbf7678bbf (patch)
treee455c451e097a0e2f27f4a0449f42393d681d700 /src/library_glut.js
parent7224e7e46e34fe4e1c282bc0641127a1c80f4161 (diff)
Request frame if window size/position changes
Diffstat (limited to 'src/library_glut.js')
-rw-r--r--src/library_glut.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_glut.js b/src/library_glut.js
index a7d9cb5b..0ec8c6c5 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -385,11 +385,13 @@ var LibraryGLUT = {
if (GLUT.reshapeFunc) {
FUNCTION_TABLE[GLUT.reshapeFunc](width, height);
}
+ _glutPostRedisplay();
},
glutPositionWindow: function(x, y) {
GLUT.cancelFullScreen();
/* TODO */
+ _glutPostRedisplay();
},
glutFullScreen: function() {