Skip to content

Commit

Permalink
removed scaling for temporary fix on iphone5
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlebron committed May 10, 2013
1 parent 0265350 commit 5eedf2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.htm
Expand Up @@ -6,8 +6,10 @@
<title>Pac-Man</title>

<!-- Lock viewport on mobile devices. -->
<!--
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
-->
<!-- Allow page to be saved as web app on iOS. -->
<meta name="apple-mobile-web-app-capable" content="yes" />

Expand Down
1 change: 1 addition & 0 deletions src/renderers.js
Expand Up @@ -34,6 +34,7 @@ var getDevicePixelRatio = function() {
// Only consider the device pixel ratio for devices that are <= 320 pixels in width.
// This is necessary for the iPhone4's retina display; otherwise the game would be blurry.
// The iPad3's retina display @ 2048x1536 starts slowing the game down.
return 1;
if (window.innerWidth <= 320) {
return window.devicePixelRatio || 1;
}
Expand Down

0 comments on commit 5eedf2f

Please sign in to comment.