mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [OSX] Hide dock when entering fullscreen
This commit is contained in:
parent
02e7bc7e0a
commit
838fd61f29
|
@ -196,6 +196,10 @@ 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();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue