Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40129D598 for ; Thu, 20 Sep 2012 01:34:35 +0000 (UTC) Received: (qmail 32102 invoked by uid 500); 20 Sep 2012 01:34:35 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 32072 invoked by uid 500); 20 Sep 2012 01:34:35 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 32065 invoked by uid 99); 20 Sep 2012 01:34:35 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 01:34:35 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E312638406; Thu, 20 Sep 2012 01:34:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: ios commit: Added CDV_IsIPhone5 macro Message-Id: <20120920013434.E312638406@tyr.zones.apache.org> Date: Thu, 20 Sep 2012 01:34:34 +0000 (UTC) Updated Branches: refs/heads/master 5c5297504 -> 5bbae2c46 Added CDV_IsIPhone5 macro Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/5bbae2c4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/5bbae2c4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/5bbae2c4 Branch: refs/heads/master Commit: 5bbae2c4689aaa8fa5b66359db35576d24fc2830 Parents: 5c52975 Author: Shazron Abdullah Authored: Wed Sep 19 18:34:45 2012 -0700 Committer: Shazron Abdullah Committed: Wed Sep 19 18:34:45 2012 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVAvailability.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/5bbae2c4/CordovaLib/Classes/CDVAvailability.h ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVAvailability.h b/CordovaLib/Classes/CDVAvailability.h index 77d05f6..4b73e9f 100644 --- a/CordovaLib/Classes/CDVAvailability.h +++ b/CordovaLib/Classes/CDVAvailability.h @@ -58,6 +58,8 @@ #define CDV_IsIPad() ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] && ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)) +#define CDV_IsIPhone5() ([[UIScreen mainScreen] bounds].size.height == 568 && [[UIScreen mainScreen] bounds].size.width == 320) + /* Return the string version of the decimal version */ #define CDV_VERSION [NSString stringWithFormat:@"%d.%d.%d", \ (CORDOVA_VERSION_MIN_REQUIRED / 10000), \