Renamed MenuKey into MenuHandleKeyboard to avoid name collision.

This commit is contained in:
johns 2002-03-27 22:38:00 +00:00
parent 421d25d16c
commit 458dc1918e
3 changed files with 5 additions and 3 deletions

View file

@ -248,7 +248,7 @@ extern void DrawMenuButton(MenuButtonId button,unsigned flags,unsigned w,unsigne
/// Draw and process a menu
extern void ProcessMenu(int MenuId, int Loop);
/// Keyboard handler for menus
extern int MenuKey(int key);
extern int MenuHandleKeyboard(int key);
/// Called if the mouse is moved in Menu interface state
extern void MenuHandleMouseMove(int x,int y);
/// Called if any mouse button is pressed down

View file

@ -776,7 +776,7 @@ global void HandleKeyDown(unsigned key,unsigned keychar)
return;
case IfaceStateMenu: // Menu active
MenuKey(key);
MenuHandleKeyboard(key);
return;
}
}

View file

@ -3178,7 +3178,9 @@ global void ProcessMenu(int menu_id, int loop)
if (loop) {
while (CurrentMenu != -1) {
DebugLevel3("MustRedraw: 0x%08x\n",MustRedraw);
UpdateDisplay();
if( MustRedraw ) {
UpdateDisplay();
}
RealizeVideoMemory();
oldncr = NetConnectRunning;
WaitEventsAndKeepSync();