diff options
author | 2016-06-29 08:34:30 +0200 | |
---|---|---|
committer | 2016-06-29 08:34:30 +0200 | |
commit | 63f9a01f8c5d43b9cfe68c2d401a84647d19c10e (patch) | |
tree | a1f1874aa84850bddbebd2b0e0bfc3e1c77ce8c4 /src/frontend/mame/ui/text.cpp | |
parent | 1f6f1bfd6cfb748d9c5e159d6bd014bab8d30944 (diff) |
Cleanup and version bumpmame0175
Diffstat (limited to 'src/frontend/mame/ui/text.cpp')
-rw-r--r-- | src/frontend/mame/ui/text.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/text.cpp b/src/frontend/mame/ui/text.cpp index fbd9e8de5d2..02cc3c59030 100644 --- a/src/frontend/mame/ui/text.cpp +++ b/src/frontend/mame/ui/text.cpp @@ -2,9 +2,9 @@ // copyright-holders:Nicola Salmoria, Aaron Giles, Nathan Woods /********************************************************************* - text.cpp + text.cpp - Text functionality for MAME's crude user interface + Text functionality for MAME's crude user interface *********************************************************************/ @@ -13,7 +13,6 @@ #include "render.h" namespace ui { - /*************************************************************************** INLINE FUNCTIONS ***************************************************************************/ @@ -91,7 +90,7 @@ text_layout::text_layout(render_font &font, float xscale, float yscale, float wi text_layout::text_layout(text_layout &&that) : m_font(that.m_font), m_xscale(that.m_xscale), m_yscale(that.m_yscale), m_width(that.m_width), m_calculated_actual_width(that.m_calculated_actual_width), m_justify(that.m_justify), m_wrap(that.m_wrap), m_lines(std::move(that.m_lines)), - m_current_line(that.m_current_line), m_last_break(that.m_last_break), m_text_position(that.m_text_position), m_truncating(false) + m_current_line(that.m_current_line), m_last_break(that.m_last_break), m_text_position(that.m_text_position), m_truncating(false) { that.invalidate_calculated_actual_width(); } @@ -475,7 +474,7 @@ void text_layout::emit(render_container *container, float x, float y) for (auto i = 0; i < line->character_count(); i++) { auto &ch = line->character(i); - + // position this specific character correctly (TODO - this doesn't // handle differently sized text (yet) float char_x = x + line_xoffset + ch.xoffset; |