cocoaTouch/OverlayViewController.m
changeset 3335 2520ee7a5484
parent 3317 198ec44b6d92
child 3340 96dd168b080b
--- a/cocoaTouch/OverlayViewController.m	Sun Apr 11 01:04:54 2010 +0000
+++ b/cocoaTouch/OverlayViewController.m	Sun Apr 11 03:43:13 2010 +0000
@@ -12,15 +12,20 @@
 #import "CGPointUtils.h"
 #import "SDL_mouse.h"
 #import "PopoverMenuViewController.h"
+#import "CommodityFunctions.h"
 
 @implementation OverlayViewController
 @synthesize dimTimer, popoverController, popupMenu;
 
 
+-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
+	return rotationManager(interfaceOrientation);
+}
+
+
 -(void) didReceiveMemoryWarning {
 	// Releases the view if it doesn't have a superview.
     [super didReceiveMemoryWarning];
-
 	// Release any cached data, images, etc that aren't in use.
 }
 
@@ -48,10 +53,6 @@
     [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(showMenuAfterwards) userInfo:nil repeats:NO];
 }
 
--(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
-    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
-}
-
 -(void) viewDidUnload {
 	[dimTimer invalidate];
 	self.dimTimer = nil;