|
@@ -702,8 +702,8 @@ function drawPolygon (polygon, points, counter, tweeningFns) {
|
702
|
702
|
/* MAIN LOOP */
|
703
|
703
|
|
704
|
704
|
function loop () {
|
705
|
|
- screenWidth = document.body.clientWidth;
|
706
|
|
- screenHeight = document.body.clientHeight;
|
|
705
|
+ screenWidth = window.innerWidth;
|
|
706
|
+ screenHeight = window.innerHeight;
|
707
|
707
|
renderer.resize(screenWidth, screenHeight);
|
708
|
708
|
|
709
|
709
|
polygon.clear();
|
|
@@ -819,8 +819,8 @@ function loop () {
|
819
|
819
|
}
|
820
|
820
|
|
821
|
821
|
function loopStart () {
|
822
|
|
- screenWidth = document.body.clientWidth;
|
823
|
|
- screenHeight = document.body.clientHeight;
|
|
822
|
+ screenWidth = window.innerWidth;
|
|
823
|
+ screenHeight = window.innerHeight;
|
824
|
824
|
// Create the renderer
|
825
|
825
|
renderer = window.PIXI.autoDetectRenderer(screenWidth, screenHeight, {antialias: true, resolution: resolution});
|
826
|
826
|
|