aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-04-05 14:19:05 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-04-05 14:19:05 -0400
commit9bedb03c36de93f9c8bb58dc0f56434820f3b7b3 (patch)
tree459570d58d83b4cd6f44898ef7e9af9415bd649d /src
parentca7e8c4d76fdebc6ac10191cde9b0021af5803a8 (diff)
Use screen["width"] instead of screen.width
Diffstat (limited to 'src')
-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;