From a2da57f494de5c08e86ef132882e0da2e87593b6 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 2 Feb 2014 12:02:46 +0000 Subject: [PATCH] Minor cosmetic changes --- src/emu/ui/menu.h | 2 +- src/emu/ui/miscmenu.h | 2 +- src/emu/ui/selgame.c | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/emu/ui/menu.h b/src/emu/ui/menu.h index 080e1b7043a..6091bc3e3a7 100644 --- a/src/emu/ui/menu.h +++ b/src/emu/ui/menu.h @@ -154,7 +154,7 @@ public: // draw arrow static void draw_arrow(render_container *container, float x0, float y0, float x1, float y1, rgb_t fgcolor, UINT32 orientation); -// master handler + // master handler static UINT32 ui_handler(running_machine &machine, render_container *container, UINT32 state); // Used by sliders diff --git a/src/emu/ui/miscmenu.h b/src/emu/ui/miscmenu.h index 668ccfdb2bf..7605baa88b5 100644 --- a/src/emu/ui/miscmenu.h +++ b/src/emu/ui/miscmenu.h @@ -233,7 +233,7 @@ private: class ui_menu_sliders : public ui_menu { public: - ui_menu_sliders(running_machine &machine, render_container *container, bool menuless_mode); + ui_menu_sliders(running_machine &machine, render_container *container, bool menuless_mode = false); virtual ~ui_menu_sliders(); virtual void populate(); virtual void handle(); diff --git a/src/emu/ui/selgame.c b/src/emu/ui/selgame.c index 11ae66fe88b..cc5553acf5c 100644 --- a/src/emu/ui/selgame.c +++ b/src/emu/ui/selgame.c @@ -1,4 +1,4 @@ -/********************************************************************* +/*************************************************************************** ui/selgame.c @@ -7,7 +7,7 @@ Copyright Nicola Salmoria and the MAME Team. Visit http://mamedev.org for licensing and usage restrictions. -*********************************************************************/ +***************************************************************************/ #include "emu.h" #include "osdnet.h" @@ -176,7 +176,6 @@ void ui_menu_select_game::inkey_select(const ui_menu_event *menu_event) } - //------------------------------------------------- // inkey_cancel //------------------------------------------------- @@ -198,6 +197,7 @@ void ui_menu_select_game::inkey_cancel(const ui_menu_event *menu_event) void ui_menu_select_game::inkey_special(const ui_menu_event *menu_event) { + // typed characters append to the buffer int buflen = strlen(m_search); // if it's a backspace and we can handle it, do so @@ -448,5 +448,3 @@ void ui_menu_select_game::force_game_select(running_machine &machine, render_con // make sure MAME is paused machine.pause(); } - -