diff options
Diffstat (limited to 'src/emu/ui/ui.h')
-rw-r--r-- | src/emu/ui/ui.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/ui/ui.h b/src/emu/ui/ui.h index 9af361c8cc5..ad6c3d11ae1 100644 --- a/src/emu/ui/ui.h +++ b/src/emu/ui/ui.h @@ -140,7 +140,7 @@ public: render_font *get_font(); float get_line_height(); float get_char_width(unicode_char ch); - float get_string_width(const char *s); + float get_string_width(const char *s, float text_size = 1.0f); void draw_outlined_box(render_container *container, float x0, float y0, float x1, float y1, rgb_t backcolor); void draw_outlined_box(render_container *container, float x0, float y0, float x1, float y1, rgb_t fgcolor, rgb_t bgcolor); void draw_text(render_container *container, const char *buf, float x, float y); @@ -186,9 +186,6 @@ public: // draw an outlined box with given line color and filled with a texture void draw_textured_box(render_container *container, float x0, float y0, float x1, float y1, rgb_t backcolor, rgb_t linecolor, render_texture *texture = nullptr, UINT32 flags = PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA)); - // return text string width with given text size - float get_string_width_ex(const char *s, float text_size); - private: // instance variables running_machine & m_machine; |