diff --git a/src/emu/ui/ui.c b/src/emu/ui/ui.c index 465d13bef9b..dbc5ba9a91c 100644 --- a/src/emu/ui/ui.c +++ b/src/emu/ui/ui.c @@ -880,7 +880,7 @@ void ui_manager::set_show_fps(bool show) // counter visibility state //------------------------------------------------- -bool ui_manager::show_fps() +bool ui_manager::show_fps() const { return m_showfps || (m_showfps_end != 0); } @@ -915,7 +915,7 @@ void ui_manager::set_show_profiler(bool show) // profiler visibility state //------------------------------------------------- -bool ui_manager::show_profiler() +bool ui_manager::show_profiler() const { return m_show_profiler; } @@ -2312,7 +2312,7 @@ static INT32 slider_crossoffset(running_machine &machine, void *arg, astring *st // whether the natural keyboard is active //------------------------------------------------- -bool ui_manager::use_natural_keyboard() +bool ui_manager::use_natural_keyboard() const { return m_use_natural_keyboard; } diff --git a/src/emu/ui/ui.h b/src/emu/ui/ui.h index 7d45cf6e07d..c9fb7471e17 100644 --- a/src/emu/ui/ui.h +++ b/src/emu/ui/ui.h @@ -142,15 +142,15 @@ public: void CLIB_DECL popup_time(int seconds, const char *text, ...); void show_fps_temp(double seconds); void set_show_fps(bool show); - bool show_fps(void); + bool show_fps() const; bool show_fps_counter(); void set_show_profiler(bool show); - bool show_profiler(); + bool show_profiler() const; void show_menu(); void show_mouse(bool status); bool is_menu_active(); void paste(); - bool use_natural_keyboard(); + bool use_natural_keyboard() const; void set_use_natural_keyboard(bool use_natural_keyboard); void image_handler_ingame();