diff --git a/desmume/src/cocoa/userinterface/DisplayWindowController.h b/desmume/src/cocoa/userinterface/DisplayWindowController.h index 9354314e3..e41f32b54 100644 --- a/desmume/src/cocoa/userinterface/DisplayWindowController.h +++ b/desmume/src/cocoa/userinterface/DisplayWindowController.h @@ -159,13 +159,13 @@ class OGLVideoOutput; - (id)initWithWindowNibName:(NSString *)windowNibName emuControlDelegate:(EmuControllerDelegate *)theEmuController; - (void) setupUserDefaults; +- (BOOL) masterStatusBarState; +- (NSRect) masterWindowFrame; +- (double) masterWindowScale; - (double) resizeWithTransform:(NSSize)normalBounds scalar:(double)scalar rotation:(double)angleDegrees; - (double) maxScalarForContentBoundsWidth:(double)contentBoundsWidth height:(double)contentBoundsHeight; - (void) enterFullScreen; - (void) exitFullScreen; -- (BOOL) masterStatusBarState; -- (NSRect) masterWindowFrame; -- (double) masterWindowScale; - (IBAction) copy:(id)sender; - (IBAction) changeHardwareMicGain:(id)sender; diff --git a/desmume/src/cocoa/userinterface/DisplayWindowController.mm b/desmume/src/cocoa/userinterface/DisplayWindowController.mm index d9aecb864..872f1e95d 100644 --- a/desmume/src/cocoa/userinterface/DisplayWindowController.mm +++ b/desmume/src/cocoa/userinterface/DisplayWindowController.mm @@ -522,6 +522,21 @@ static std::unordered_map _screenMap; // return normalSize; } +- (BOOL) masterStatusBarState +{ + return (([self assignedScreen] == nil) || !_useMavericksFullScreen) ? [self isShowingStatusBar] : _masterStatusBarState; +} + +- (NSRect) masterWindowFrame +{ + return (([self assignedScreen] == nil) || !_useMavericksFullScreen) ? [masterWindow frame] : _masterWindowFrame; +} + +- (double) masterWindowScale +{ + return (([self assignedScreen] == nil) || !_useMavericksFullScreen) ? [self displayScale] : _masterWindowScale; +} + - (double) resizeWithTransform:(NSSize)normalBounds scalar:(double)scalar rotation:(double)angleDegrees { if ([self assignedScreen] != nil) @@ -1463,21 +1478,6 @@ static std::unordered_map _screenMap; // } } -- (BOOL) masterStatusBarState -{ - return ([self assignedScreen] == nil) ? [self isShowingStatusBar] : _masterStatusBarState; -} - -- (NSRect) masterWindowFrame -{ - return ([self assignedScreen] == nil) ? [masterWindow frame] : _masterWindowFrame; -} - -- (double) masterWindowScale -{ - return ([self assignedScreen] == nil) ? [self displayScale] : _masterWindowScale; -} - #endif - (BOOL)validateToolbarItem:(NSToolbarItem *)theItem