Add hidden ini file setting that you can use to hide the menu bar.

Windows-only. Useful together with some video recording software.

Might make some actual UI later.
This commit is contained in:
Henrik Rydgård
2022-09-29 18:51:21 +02:00
parent 7a4830ed4c
commit d31f129407
3 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -353,8 +353,8 @@ namespace MainWindow
::SetWindowLong(hWnd, GWL_STYLE, dwStyle);
// Remove the menu bar. This can trigger WM_SIZE
::SetMenu(hWnd, goingFullscreen ? NULL : menu);
// Remove the menu bar. This can trigger WM_SIZE because the contents change size.
::SetMenu(hWnd, goingFullscreen || !g_Config.bShowMenuBar ? NULL : menu);
if (g_Config.UseFullScreen() != goingFullscreen) {
g_Config.bFullScreen = goingFullscreen;