diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 14:19:05 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-04-05 14:19:05 -0400 |
commit | 9bedb03c36de93f9c8bb58dc0f56434820f3b7b3 (patch) | |
tree | 459570d58d83b4cd6f44898ef7e9af9415bd649d | |
parent | ca7e8c4d76fdebc6ac10191cde9b0021af5803a8 (diff) |
Use screen["width"] instead of screen.width
-rw-r--r-- | src/library_glut.js | 4 |
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; |