diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/slider.cpp')
-rw-r--r-- | src/osd/modules/render/bgfx/slider.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/modules/render/bgfx/slider.cpp b/src/osd/modules/render/bgfx/slider.cpp index bfd472f7a8a..452c934fd37 100644 --- a/src/osd/modules/render/bgfx/slider.cpp +++ b/src/osd/modules/render/bgfx/slider.cpp @@ -6,11 +6,11 @@ // //============================================================ -#include "emu.h" - #include "slider.h" #include "../frontend/mame/ui/slider.h" +#include "strformat.h" + bgfx_slider::bgfx_slider(running_machine &machine, std::string name, float min, float def, float max, float step, slider_type type, screen_type screen, std::string format, std::string description, std::vector<std::string>& strings) : m_name(name) , m_step(step) @@ -66,7 +66,7 @@ int32_t bgfx_slider::update(std::string *str, int32_t newval) } if (str != nullptr) { - *str = string_format(m_format, m_strings[as_int()]); + *str = util::string_format(m_format, m_strings[as_int()]); } return as_int(); } @@ -79,7 +79,7 @@ int32_t bgfx_slider::update(std::string *str, int32_t newval) } if (str != nullptr) { - *str = string_format(m_format, as_int()); + *str = util::string_format(m_format, as_int()); } return as_int(); } @@ -93,7 +93,7 @@ int32_t bgfx_slider::update(std::string *str, int32_t newval) } if (str != nullptr) { - *str = string_format(m_format, *val_ptr); + *str = util::string_format(m_format, *val_ptr); } return int32_t(floor(*val_ptr / m_step + 0.5f)); } |