Skip to content

Commit b7ed34d

Browse files
committed
Raise max device pixel ratio to 3
1 parent 4ed82c2 commit b7ed34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cocos2d/core/platform/CCEGLView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ cc.ContainerStrategy = cc.Class.extend(/** @lends cc.ContainerStrategy# */{
936936
// Setup pixel ratio for retina display
937937
var devicePixelRatio = view._devicePixelRatio = 1;
938938
if (view.isRetinaEnabled())
939-
devicePixelRatio = view._devicePixelRatio = Math.min(2, window.devicePixelRatio || 1);
939+
devicePixelRatio = view._devicePixelRatio = Math.min(3, window.devicePixelRatio || 1);
940940
// Setup canvas
941941
locCanvas.width = w * devicePixelRatio;
942942
locCanvas.height = h * devicePixelRatio;

0 commit comments

Comments
 (0)