Commits

Anonymous committed e37d581

Really fix Command-T

Comments (0)

Files changed (7)

osx/English.lproj/MainMenu.nib/classes.nib

                 showReleaseNotes = id; 
                 showWhatsNew = id; 
                 togglePause = id; 
+                toggleThrottled = id; 
                 visualEffectsMenuChanged = id; 
             }; 
             CLASS = MameController; 

osx/English.lproj/MainMenu.nib/info.nib

 	<string>446.1</string>
 	<key>IBOpenObjects</key>
 	<array>
+		<integer>269</integer>
+		<integer>29</integer>
+		<integer>321</integer>
 		<integer>468</integer>
-		<integer>29</integer>
-		<integer>269</integer>
-		<integer>321</integer>
 		<integer>21</integer>
 	</array>
 	<key>IBSystem Version</key>

osx/English.lproj/MainMenu.nib/keyedobjects.nib

Binary file modified.

osx/MameController.h

 - (IBAction) nextVisualEffect: (id) sender;
 - (IBAction) previousVisualEffects: (id) sender;
 - (IBAction) visualEffectsMenuChanged: (id) sender;
-
-- (BOOL) throttled;
-- (void) setThrottled: (BOOL) flag;
+- (IBAction) toggleThrottled: (id) sender;
 
 - (BOOL) syncToRefresh;
 - (void) setSyncToRefresh: (BOOL) flag;

osx/MameController.m

     return size;
 }
 
-//=========================================================== 
-//  throttled 
-//=========================================================== 
-- (BOOL) throttled
+- (IBAction) toggleThrottled: (id) sender;
 {
-    return [mMameView throttled];
-}
-
-- (void) setThrottled: (BOOL) flag
-{
-    [mMameView setThrottled: flag];
+    [mMameView toggleThrottled];
 }
 
 //=========================================================== 
 {
     MamePreferences * preferences = [MamePreferences standardPreferences];
 
-    [self setThrottled: [preferences throttled]];
     [self setSyncToRefresh: [preferences syncToRefresh]];
     [self setLinearFilter: [preferences linearFilter]];
     [self setCurrentVisualEffectName: [preferences visualEffect]];
 
+    [mMameView setThrottled: [preferences throttled]];
     [mMameView setAudioEnabled: [preferences soundEnabled]];
     
     NSString * frameRendering = [preferences frameRendering];
 
 - (BOOL) throttled;
 - (void) setThrottled: (BOOL) flag;
+- (void) toggleThrottled;
 
 - (BOOL) shouldHideMouseCursor;
 - (void) setShouldHideMouseCursor: (BOOL) flag;
 //=========================================================== 
 //  throttled 
 //=========================================================== 
-- (BOOL) throttled
+- (BOOL) throttled;
 {
     BOOL value;
     @synchronized(self)
     return value;
 }
 
-- (void) setThrottled: (BOOL) flag
+- (void) setThrottled: (BOOL) flag;
 {
     @synchronized(self)
     {
     }
 }
 
+
+- (void) toggleThrottled;
+{
+    @synchronized(self)
+    {
+        video_set_throttle(!video_get_throttle());
+    }
+}
+
 //=========================================================== 
 //  shouldHideMouseCursor 
 //===========================================================