From 70dd83512c073d26b5fc46ca352eaadac36f6860 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 1 Apr 2014 15:08:08 +0800 Subject: [PATCH] Renames s_isIOS7 to s_isIOS7OrHigher --- cocos/2d/platform/ios/CCDevice.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/2d/platform/ios/CCDevice.mm b/cocos/2d/platform/ios/CCDevice.mm index 1165726fb5..e33dac7914 100644 --- a/cocos/2d/platform/ios/CCDevice.mm +++ b/cocos/2d/platform/ios/CCDevice.mm @@ -199,14 +199,14 @@ typedef struct } tImageInfo; -static bool s_isIOS7 = false; +static bool s_isIOS7OrHigher = false; static inline void lazyCheckIOS7() { static bool isInited = false; if (!isInited) { - s_isIOS7 = [[[UIDevice currentDevice] systemVersion] compare:@"7.0" options:NSNumericSearch] != NSOrderedAscending; + s_isIOS7OrHigher = [[[UIDevice currentDevice] systemVersion] compare:@"7.0" options:NSNumericSearch] != NSOrderedAscending; isInited = true; } } @@ -394,7 +394,7 @@ static bool _initWithString(const char * text, cocos2d::Device::TextAlign align, { CGContextSetTextDrawingMode(context, kCGTextStroke); - if(s_isIOS7) + if(s_isIOS7OrHigher) { NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; paragraphStyle.alignment = nsAlign;