--- 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);
+
+}