summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-08 16:57:59 +0100
committerGitHub <noreply@github.com>2021-03-08 16:57:59 +0100
commit04db99749b6cb81f5df92e80fe0e731cb1eb9f12 (patch)
tree50a44241a9c937da96db04991bdf76f9bd5ece99 /src/video/cocoa
parentd3179709b1c848dfad61540cbea3db7ed8deb5fb (diff)
downloadopenttd-04db99749b6cb81f5df92e80fe0e731cb1eb9f12.tar.xz
Fix #8784: using alt+enter didn't update the fullscreen toggle visibly (#8820)
Basically, the window was not invalidated, so it was never redrawn. This made it look like it wasn't working, but it really was.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/cocoa_v.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 7b7fe9d67..1a75017df 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -201,6 +201,7 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
[ NSMenu setMenuBarVisible:!full_screen ];
this->UpdateVideoModes();
+ InvalidateWindowClassesData(WC_GAME_OPTIONS, 3);
return true;
}