diff options
Diffstat (limited to 'src/frontend/mame/ui/sndmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/sndmenu.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/frontend/mame/ui/sndmenu.cpp b/src/frontend/mame/ui/sndmenu.cpp index 1ee1e82e25c..136cbcf98f4 100644 --- a/src/frontend/mame/ui/sndmenu.cpp +++ b/src/frontend/mame/ui/sndmenu.cpp @@ -27,6 +27,8 @@ const int menu_sound_options::m_sound_rate[] = { 11025, 22050, 44100, 48000 }; menu_sound_options::menu_sound_options(mame_ui_manager &mui, render_container &container) : menu(mui, container) { + set_heading(_("Sound Options")); + osd_options &options = downcast<osd_options &>(mui.machine().options()); m_sample_rate = mui.machine().options().sample_rate(); @@ -109,7 +111,7 @@ void menu_sound_options::handle(event const *ev) s_sel[index] = std::to_string(m_sound_rate[index]); menu::stack_push<menu_selector>( - ui(), container(), std::move(s_sel), m_cur_rates, + ui(), container(), _("Sample Rate"), std::move(s_sel), m_cur_rates, [this] (int selection) { m_cur_rates = selection; @@ -148,22 +150,6 @@ void menu_sound_options::populate(float &customtop, float &custombottom) item_append(_("Sample Rate"), string_format("%d", m_sample_rate), arrow_flags, (void *)(uintptr_t)SAMPLE_RATE); item_append_on_off(_("Use External Samples"), m_samples, 0, (void *)(uintptr_t)ENABLE_SAMPLES); item_append(menu_item_type::SEPARATOR); - - customtop = ui().get_line_height() + (3.0f * ui().box_tb_border()); -} - -//------------------------------------------------- -// perform our special rendering -//------------------------------------------------- - -void menu_sound_options::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) -{ - char const *const toptext[] = { _("Sound Options") }; - draw_text_box( - std::begin(toptext), std::end(toptext), - origx1, origx2, origy1 - top, origy1 - ui().box_tb_border(), - text_layout::text_justify::CENTER, text_layout::word_wrapping::TRUNCATE, false, - ui().colors().text_color(), UI_GREEN_COLOR, 1.0f); } } // namespace ui |