Fixed bug #697747: buttons in button panel were drawn clicked when clicking in the menu
This commit is contained in:
parent
477d56220a
commit
0d91d4d7ce
1 changed files with 6 additions and 4 deletions
|
@ -2062,10 +2062,11 @@ global void EndMenu(void)
|
|||
MustRedraw = RedrawEverything;
|
||||
PopMenu();
|
||||
|
||||
if (!CurrentMenu && Callbacks!=&GameCallbacks) {
|
||||
InterfaceState=IfaceStateNormal;
|
||||
Callbacks=&GameCallbacks;
|
||||
GamePaused=0;
|
||||
if (!CurrentMenu && Callbacks != &GameCallbacks) {
|
||||
InterfaceState = IfaceStateNormal;
|
||||
Callbacks = &GameCallbacks;
|
||||
GamePaused = 0;
|
||||
UIHandleMouseMove(CursorX, CursorY);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2101,6 +2102,7 @@ global void ProcessMenu(const char *menu_id, int loop)
|
|||
InterfaceState = IfaceStateMenu;
|
||||
}
|
||||
|
||||
ButtonUnderCursor = -1;
|
||||
VideoLockScreen();
|
||||
HideAnyCursor();
|
||||
VideoUnlockScreen();
|
||||
|
|
Loading…
Add table
Reference in a new issue