mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
simpleselgame: The zeroing of the search does not require a reload. nw
This commit is contained in:
parent
a9cfa69af9
commit
bc2ef66756
@ -181,8 +181,8 @@ void ui_simple_menu_select_game::inkey_cancel(const ui_menu_event *menu_event)
|
||||
// escape pressed with non-empty text clears the text
|
||||
if (m_search[0] != 0)
|
||||
{
|
||||
// since we have already been popped, we must recreate ourself from scratch
|
||||
ui_menu::stack_push(global_alloc_clear<ui_simple_menu_select_game>(machine(), container, nullptr));
|
||||
m_search[0] = '\0';
|
||||
reset(UI_MENU_RESET_SELECT_FIRST);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ public:
|
||||
// force game select menu
|
||||
static void force_game_select(running_machine &machine, render_container *container);
|
||||
|
||||
virtual bool menu_has_search_active() override { return (m_search[0] != 0); }
|
||||
private:
|
||||
// internal state
|
||||
enum { VISIBLE_GAMES_IN_LIST = 15 };
|
||||
|
Loading…
Reference in New Issue
Block a user