diff --git a/game-style.css b/game-style.css index 06562f7..7431ec4 100644 --- a/game-style.css +++ b/game-style.css @@ -17,7 +17,8 @@ canvas { image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; - image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; + image-rendering: crisp-edges; + image-rendering: pixelated; cursor: pointer; } diff --git a/script.js b/script.js index 6102262..4e091f2 100644 --- a/script.js +++ b/script.js @@ -259,12 +259,12 @@ $("body").on("keypress", function(e) { $(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange", function() { var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement; if (fullscreenElement) { - if ($("body").width() < $("body").height()) { - $("#p").width($("body").width()); + if ($(window).width() < $(window).height()) { + $("#p").width($(window).width()); $("#p").height($("#p").width()/4*3); } else { - $("#p").height($("body").height()); + $("#p").height($(window).height()); $("#p").width($("#p").height()/3*4); } }