mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
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:) ]) {
|
||||
[ this->window performSelector:@selector(toggleFullScreen:) withObject:this->window ];
|
||||
|
||||
/* Hide the menu bar and the dock */
|
||||
[ NSMenu setMenuBarVisible:!full_screen ];
|
||||
|
||||
this->UpdateVideoModes();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user