Skip to content
Snippets Groups Projects
Commit 5e64e1b1 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

iOS: detect iPhone 4-inch as retina

parent d75fddc1
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
w = mainscr.currentMode.size.width; w = mainscr.currentMode.size.width;
h = mainscr.currentMode.size.height; h = mainscr.currentMode.size.height;
} }
if ((w == 640 && h == 960) || (h == 1536 && w == 2048)) { // Retina display (iPhone or iPad/iPad mini) if ((w == 640 && h == 960) || (h == 1136 && w == 640) || (h == 1536 && w == 2048)) { // Retina display (iPhone or iPhone 4-inch or iPad/iPad mini)
self.contentScaleFactor = 2.0; self.contentScaleFactor = 2.0;
eaglLayer.contentsScale=2; eaglLayer.contentsScale=2;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment