mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
Windows SDL 1.x: Menu refresh fix.
This commit is contained in:
parent
9a2dd1018d
commit
87c4d9126c
@ -777,14 +777,12 @@ void DOSBox_SetMenu(void) {
|
||||
|
||||
LOG(LOG_MISC,LOG_DEBUG)("Win32: loading and attaching menu resource to DOSBox's window");
|
||||
|
||||
bool initmenu = !menu.toggle;
|
||||
|
||||
menu.toggle=true;
|
||||
NonUserResizeCounter=1;
|
||||
SetMenu(GetHWND(), LoadMenu(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_MENU)));
|
||||
DrawMenuBar (GetHWND());
|
||||
|
||||
if (initmenu) Reflect_Menu();
|
||||
Reflect_Menu();
|
||||
|
||||
if(menu.startup) {
|
||||
RENDER_CallBack( GFX_CallBackReset );
|
||||
|
Loading…
x
Reference in New Issue
Block a user