]> _ Git - cubeextranet.git/commitdiff
wip #1701 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 9 Nov 2017 15:53:45 +0000 (15:53 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 9 Nov 2017 15:53:45 +0000 (15:53 +0000)
inc/ws/Util/packager/class.ws.packager.phonegap.php

index 7c6c4f59e0c1f4081f3dc2dde953b964a7932a8a..c23ee9c511f1f168017eb8283ef16bb55d761d07 100644 (file)
@@ -56,11 +56,12 @@ class wsPackagerPhonegap extends wsPackager {
        protected function makeScreenshots() {
                $resolutions = array(
                        //'ipad' => array('width' => 1024, 'height' => 768, 'zoom' => 2),
-                       'ipad-pro' => array('width' => 1366, 'height' => 1024, 'zoom' => 2),
+                       'ipad-pro' => array('width' => 2732, 'height' => 2048, 'zoom' => 2),
                        //'iphone3-5' => array('width' => 960, 'height' => 640, 'zoom' => 1),
                        //'iphone-4' => array('width' => 1136, 'height' => 640, 'zoom' => 1),
                        //'iphone-4-7' => array('width' => 1334, 'height' => 750, 'zoom' => 1),
-                       'iphone-5-5' => array('width' => 2208, 'height' => 1242, 'zoom' => 1)
+                       'iphone-5-5' => array('width' => 2208, 'height' => 1242, 'zoom' => 2),
+                       'iphone-5-8' => array('width' => 2436, 'height' => 1125, 'zoom' => 2),
                );
 
                $views = array();
@@ -108,6 +109,9 @@ class wsPackagerPhonegap extends wsPackager {
                                        $screenWidth = $h;
                                        $screenHeight = $w;
                                }
+                               $screenWidth /= $z;
+                               $screenHeight /= $z;
+
                                if (strpos($view['url'], 'http') === 0) {
                                        $url = $view['url'];
                                        $delay = 5;