mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
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:
parent
7a4830ed4c
commit
d31f129407
@ -610,6 +610,7 @@ static ConfigSetting generalSettings[] = {
|
||||
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, false, true, true),
|
||||
ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false, true, true),
|
||||
ConfigSetting("FullscreenOnDoubleclick", &g_Config.bFullscreenOnDoubleclick, true, false, false),
|
||||
ConfigSetting("ShowMenuBar", &g_Config.bShowMenuBar, true, true, false),
|
||||
|
||||
ReportedConfigSetting("MemStickInserted", &g_Config.bMemStickInserted, true, true, true),
|
||||
ConfigSetting("EnablePlugins", &g_Config.bLoadPlugins, true, true, true),
|
||||
|
@ -191,6 +191,7 @@ public:
|
||||
int iWindowY;
|
||||
int iWindowWidth; // Windows and other windowed environments
|
||||
int iWindowHeight;
|
||||
bool bShowMenuBar; // Windows-only
|
||||
|
||||
float fUITint;
|
||||
float fUISaturation;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user