diff --git a/src/game-lib-d3-api-camera.js b/src/game-lib-d3-api-camera.js index 0b520a8..e01b175 100644 --- a/src/game-lib-d3-api-camera.js +++ b/src/game-lib-d3-api-camera.js @@ -68,7 +68,7 @@ GameLib.D3.API.Camera = function( this.fov = fov; if (GameLib.Utils.UndefinedOrNull(aspect)) { - aspect = window.innerWidth / window.innerHeight; + aspect = window.screen.availWidth / window.screen.availHeight; } this.aspect = aspect; diff --git a/src/game-lib-system-render.js b/src/game-lib-system-render.js index 15855b0..088331e 100644 --- a/src/game-lib-system-render.js +++ b/src/game-lib-system-render.js @@ -73,8 +73,8 @@ GameLib.System.Render.prototype.start = function() { GameLib.Event.Emit( GameLib.Event.WINDOW_RESIZE, { - width : window.innerWidth, - height : window.innerHeight + width : window.screen.availWidth, + height : window.screen.availHeight } ); @@ -101,8 +101,8 @@ GameLib.System.Render.prototype.nativeWindowResize = function() { GameLib.Event.Emit( GameLib.Event.WINDOW_RESIZE, { - width : window.innerWidth, - height : window.innerHeight + width : window.screen.availWidth, + height : window.screen.availHeight } ); };