diff --git a/plugin.xml b/plugin.xml index 3552054..bcc6a6b 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="0.2.9"> Native Page Transitions diff --git a/src/ios/NativePageTransitions.m b/src/ios/NativePageTransitions.m index f9ca28c..3b40407 100755 --- a/src/ios/NativePageTransitions.m +++ b/src/ios/NativePageTransitions.m @@ -3,7 +3,8 @@ @implementation NativePageTransitions #define IS_RETINA_DISPLAY() [[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2.0f -#define DISPLAY_SCALE IS_RETINA_DISPLAY() ? 2.0f : 1.0f +#define IS_RETINA_HD_DISPLAY() [[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 3.0f +#define DISPLAY_SCALE IS_RETINA_HD_DISPLAY() ? 3.0f : (IS_RETINA_DISPLAY() ? 2.0f : 1.0f) - (CDVPlugin*) initWithWebView:(UIWebView*)theWebView { self = [super initWithWebView:theWebView];