mirror of https://github.com/OpenTTD/OpenTTD
Merge c5d43b433b
into 8c395ed67c
commit
24130c967b
|
@ -206,9 +206,6 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
|
||||||
if ([ this->window respondsToSelector:@selector(toggleFullScreen:) ]) {
|
if ([ this->window respondsToSelector:@selector(toggleFullScreen:) ]) {
|
||||||
[ this->window performSelector:@selector(toggleFullScreen:) withObject:this->window ];
|
[ this->window performSelector:@selector(toggleFullScreen:) withObject:this->window ];
|
||||||
|
|
||||||
/* Hide the menu bar and the dock */
|
|
||||||
[ NSMenu setMenuBarVisible:!full_screen ];
|
|
||||||
|
|
||||||
this->UpdateVideoModes();
|
this->UpdateVideoModes();
|
||||||
InvalidateWindowClassesData(WC_GAME_OPTIONS, 3);
|
InvalidateWindowClassesData(WC_GAME_OPTIONS, 3);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1300,7 +1300,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
|
||||||
/** Presentation options to use for full screen mode. */
|
/** Presentation options to use for full screen mode. */
|
||||||
- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
|
- (NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
|
||||||
{
|
{
|
||||||
return NSApplicationPresentationFullScreen | NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock;
|
return NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideMenuBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue