Permalink
Browse files

CocosDenshion tests: don't enable retina display for them

  • Loading branch information...
1 parent 98a2fd8 commit 92d5780577428dd9be7696038105bff63330cffd @ricardoquesada ricardoquesada committed Jun 3, 2012
@@ -480,6 +480,9 @@ -(void) setUpAudioManager:(NSObject*) data {
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
+ // Display retina Display
+ useRetinaDisplay_ = NO;
+
[super application:application didFinishLaunchingWithOptions:launchOptions];
// display FPS (useful when debugging)
@@ -14,6 +14,9 @@ @implementation FadeToGreyAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
+ // Display retina Display
+ useRetinaDisplay_ = NO;
+
[super application:application didFinishLaunchingWithOptions:launchOptions];
// display FPS (useful when debugging)
@@ -14,6 +14,9 @@ @implementation FancyRatMeteringDemoAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
+ // Display retina Display
+ useRetinaDisplay_ = NO;
+
[super application:application didFinishLaunchingWithOptions:launchOptions];
// display FPS (useful when debugging)
@@ -26,6 +26,9 @@ @implementation TomTheTurretAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
+ // Display retina Display
+ useRetinaDisplay_ = NO;
+
[super application:application didFinishLaunchingWithOptions:launchOptions];
//Kick off sound initialisation, this will happen in a separate thread
@@ -66,6 +69,11 @@ - (void)loadScenes {
}
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ return UIInterfaceOrientationIsLandscape(interfaceOrientation);
+}
+
- (void)launchMainMenu {
[[CCDirector sharedDirector] replaceScene:[CCTransitionProgressRadialCW transitionWithDuration:0.5f scene:_mainMenuScene]];
@@ -29,11 +29,16 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
+ <key>UIApplicationExitsOnSuspend</key>
+ <true/>
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
<key>UIStatusBarHidden</key>
<true/>
- <key>UIApplicationExitsOnSuspend</key>
- <true/>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
</dict>
</plist>

0 comments on commit 92d5780

Please sign in to comment.