summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/text.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-07-27 13:19:12 +1000
committer Vas Crabb <vas@vastheman.com>2017-07-27 13:19:36 +1000
commitea7bc5dd72ef330dd8e73b45c6bf039209cf013e (patch)
tree78dd749346619439edb8ddd238ac5bc82b309f2a /src/frontend/mame/ui/text.cpp
parent814607df5e1ed1fc8cf6ac60d1f85478d01f3c1a (diff)
don't use hairline spaces for alingment in the info box
Diffstat (limited to 'src/frontend/mame/ui/text.cpp')
-rw-r--r--src/frontend/mame/ui/text.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/text.cpp b/src/frontend/mame/ui/text.cpp
index f345fa7321d..6df9ff29049 100644
--- a/src/frontend/mame/ui/text.cpp
+++ b/src/frontend/mame/ui/text.cpp
@@ -18,6 +18,7 @@
namespace ui {
+
/***************************************************************************
INLINE FUNCTIONS
***************************************************************************/
@@ -82,8 +83,11 @@ CORE IMPLEMENTATION
//-------------------------------------------------
text_layout::text_layout(render_font &font, float xscale, float yscale, float width, text_layout::text_justify justify, text_layout::word_wrapping wrap)
- : m_font(font), m_xscale(xscale), m_yscale(yscale), m_width(width), m_justify(justify), m_wrap(wrap), m_current_line(nullptr), m_last_break(0), m_text_position(0), m_truncating(false)
-
+ : m_font(font)
+ , m_xscale(xscale), m_yscale(yscale)
+ , m_width(width)
+ , m_justify(justify), m_wrap(wrap)
+ , m_current_line(nullptr), m_last_break(0), m_text_position(0), m_truncating(false)
{
invalidate_calculated_actual_width();
}
@@ -94,8 +98,11 @@ 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_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)
{
that.invalidate_calculated_actual_width();
}