diff options
Diffstat (limited to 'src/frontend/mame/ui/sndmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/sndmenu.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/mame/ui/sndmenu.cpp b/src/frontend/mame/ui/sndmenu.cpp index 55e62062512..869ec533050 100644 --- a/src/frontend/mame/ui/sndmenu.cpp +++ b/src/frontend/mame/ui/sndmenu.cpp @@ -21,7 +21,7 @@ const int menu_sound_options::m_sound_rate[] = { 11025, 22050, 44100, 48000 }; // ctor //------------------------------------------------- -menu_sound_options::menu_sound_options(mame_ui_manager &mui, render_container *container) : menu(mui, container) +menu_sound_options::menu_sound_options(mame_ui_manager &mui, render_container &container) : menu(mui, container) { osd_options &options = downcast<osd_options &>(mui.machine().options()); @@ -101,7 +101,7 @@ void menu_sound_options::handle() for (int index = 0; index < total; index++) s_sel[index] = std::to_string(m_sound_rate[index]); - menu::stack_push<menu_selector>(ui(), container, s_sel, m_cur_rates); + menu::stack_push<menu_selector>(ui(), container(), s_sel, m_cur_rates); } break; @@ -126,7 +126,7 @@ void menu_sound_options::handle() void menu_sound_options::populate() { - UINT32 arrow_flags = get_arrow_flags(0, ARRAY_LENGTH(m_sound_rate) - 1, m_cur_rates); + UINT32 arrow_flags = get_arrow_flags(UINT16(0), UINT16(ARRAY_LENGTH(m_sound_rate) - 1), m_cur_rates); m_sample_rate = m_sound_rate[m_cur_rates]; // add options items @@ -145,7 +145,7 @@ void menu_sound_options::populate() void menu_sound_options::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) { float width; - ui().draw_text_full(container, _("Sound Options"), 0.0f, 0.0f, 1.0f, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, + ui().draw_text_full(container(), _("Sound Options"), 0.0f, 0.0f, 1.0f, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, mame_ui_manager::NONE, rgb_t::white, rgb_t::black, &width, nullptr); width += 2 * UI_BOX_LR_BORDER; float maxwidth = MAX(origx2 - origx1, width); @@ -157,7 +157,7 @@ void menu_sound_options::custom_render(void *selectedref, float top, float botto float y2 = origy1 - UI_BOX_TB_BORDER; // draw a box - ui().draw_outlined_box(container, x1, y1, x2, y2, UI_GREEN_COLOR); + ui().draw_outlined_box(container(), x1, y1, x2, y2, UI_GREEN_COLOR); // take off the borders x1 += UI_BOX_LR_BORDER; @@ -165,7 +165,7 @@ void menu_sound_options::custom_render(void *selectedref, float top, float botto y1 += UI_BOX_TB_BORDER; // draw the text within it - ui().draw_text_full(container, _("Sound Options"), x1, y1, x2 - x1, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, + ui().draw_text_full(container(), _("Sound Options"), x1, y1, x2 - x1, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, mame_ui_manager::NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); } |