From aea30129dd2d96dc8158b6ec1c8b3e447156c914 Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Sun, 15 Apr 2012 14:17:45 +0000 Subject: [PATCH] fixed iOS ad sizing --- JGE/src/iOS/EAGLView.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/JGE/src/iOS/EAGLView.m b/JGE/src/iOS/EAGLView.m index 1dfbd10c4..2875649bc 100755 --- a/JGE/src/iOS/EAGLView.m +++ b/JGE/src/iOS/EAGLView.m @@ -509,7 +509,7 @@ static NSString *_MY_AD_WHIRL_APPLICATION_KEY_IPAD = @"2e70e3f3da40408588b9a3170 } -- (void)handleHand:(UITapGestureRecognizer *)recognizer { +- (void)handleHand:(UIGestureRecognizer *)recognizer { g_engine->HoldKey_NoRepeat(JGE_BTN_NEXT); } @@ -538,7 +538,7 @@ static NSString *_MY_AD_WHIRL_APPLICATION_KEY_IPAD = @"2e70e3f3da40408588b9a3170 } } -- (void)handleNextPhase:(UISwipeGestureRecognizer *)recognizer { +- (void)handleNextPhase:(UIGestureRecognizer *)recognizer { g_engine->HoldKey_NoRepeat(JGE_BTN_PREV); } @@ -594,7 +594,7 @@ static NSString *_MY_AD_WHIRL_APPLICATION_KEY_IPAD = @"2e70e3f3da40408588b9a3170 { switch ([recognizer direction]) { case UISwipeGestureRecognizerDirectionRight: - [self handleHand: recognizer]; + [self handleHand: nil]; break; case UISwipeGestureRecognizerDirectionLeft: @@ -746,8 +746,8 @@ static NSString *_MY_AD_WHIRL_APPLICATION_KEY_IPAD = @"2e70e3f3da40408588b9a3170 float yOffset = [viewController.parentViewController.view bounds].size.height - adSize.height; if ( isLandscape ) { - yOffset = screenWidth - adSize.height; screenWidth = [viewController.parentViewController.view bounds].size.height; + yOffset = screenWidth - adSize.height; } self.adView.frame = CGRectMake((screenWidth - adSize.width) / 2, yOffset, adSize.width, adSize.height);