From 04db99749b6cb81f5df92e80fe0e731cb1eb9f12 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Mon, 8 Mar 2021 16:57:59 +0100 Subject: 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. --- src/video/win32_v.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/video/win32_v.cpp') diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index ae1f5aafa..30729ead6 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -967,7 +967,10 @@ bool VideoDriver_Win32Base::ToggleFullscreen(bool full_screen) std::unique_lock lock; if (this->draw_mutex != nullptr) lock = std::unique_lock(*this->draw_mutex); - return this->MakeWindow(full_screen); + bool res = this->MakeWindow(full_screen); + + InvalidateWindowClassesData(WC_GAME_OPTIONS, 3); + return res; } void VideoDriver_Win32Base::AcquireBlitterLock() -- cgit v1.2.3-54-g00ecf