From: vincent@cubedesigners.com Date: Thu, 9 Nov 2017 15:53:45 +0000 (+0000) Subject: wip #1701 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6fe697a9495b0837f0ba24398685132e8de74569;p=cubeextranet.git wip #1701 @2 --- diff --git a/inc/ws/Util/packager/class.ws.packager.phonegap.php b/inc/ws/Util/packager/class.ws.packager.phonegap.php index 7c6c4f59e..c23ee9c51 100644 --- a/inc/ws/Util/packager/class.ws.packager.phonegap.php +++ b/inc/ws/Util/packager/class.ws.packager.phonegap.php @@ -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;