cocoaTouch/otherSrc/CommodityFunctions.m
changeset 3335 2520ee7a5484
parent 3330 987ec27b6042
child 3339 d558bc5a73c5
--- a/cocoaTouch/otherSrc/CommodityFunctions.m	Sun Apr 11 01:04:54 2010 +0000
+++ b/cocoaTouch/otherSrc/CommodityFunctions.m	Sun Apr 11 03:43:13 2010 +0000
@@ -7,7 +7,7 @@
 //
 
 #import "CommodityFunctions.h"
-
+#import "SDL_uikitappdelegate.h"
 
 void createTeamNamed (NSString *nameWithoutExt) {
     NSString *teamsDirectory = TEAMS_DIRECTORY();
@@ -50,3 +50,11 @@
     UIGraphicsEndImageContext();
     return resultImage; // autoreleased
 }
+
+BOOL rotationManager (UIInterfaceOrientation interfaceOrientation) {
+    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
+        return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+    else
+        return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
+
+}