mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
reduced tagmap lookups in ui_update_and_render() / changed ui_is_menu_active() to bool (nw)
This commit is contained in:
parent
fa406bda73
commit
827770a438
@ -437,7 +437,7 @@ void ui_update_and_render(running_machine &machine, render_container *container)
|
||||
else
|
||||
popup_text_end = 0;
|
||||
|
||||
if (ui_mouse_show || (machine.options().ui_mouse() && ui_is_menu_active()))
|
||||
if (ui_mouse_show || (ui_is_menu_active() && machine.options().ui_mouse()))
|
||||
{
|
||||
INT32 mouse_target_x, mouse_target_y;
|
||||
int mouse_button;
|
||||
@ -924,11 +924,11 @@ void ui_show_mouse(bool status)
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
ui_is_menu_active - return TRUE if the menu
|
||||
ui_is_menu_active - return true if the menu
|
||||
UI handler is active
|
||||
-------------------------------------------------*/
|
||||
|
||||
int ui_is_menu_active(void)
|
||||
bool ui_is_menu_active(void)
|
||||
{
|
||||
return (ui_handler_callback == ui_menu::ui_handler);
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ void ui_show_menu(void);
|
||||
void ui_show_mouse(bool status);
|
||||
|
||||
/* return true if a menu is displayed */
|
||||
int ui_is_menu_active(void);
|
||||
bool ui_is_menu_active(void);
|
||||
|
||||
/* print the game info string into a buffer */
|
||||
astring &game_info_astring(running_machine &machine, astring &string);
|
||||
|
Loading…
Reference in New Issue
Block a user