aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_glut.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_glut.js b/src/library_glut.js
index 6e01f961..6a302333 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -398,8 +398,8 @@ var LibraryGLUT = {
glutFullScreen__deps: ['$GLUT', 'glutPostRedisplay'],
glutFullScreen: function() {
- var width = screen.width;
- var height = screen.height;
+ var width = screen["width"];
+ var height = screen["height"];
/* Can't call _glutReshapeWindow as that requests cancelling fullscreen. */
Module['canvas'].width = width;
Module['canvas'].height = height;