UI:fixed a problem with game list when using MS Sans Serif font.

This commit is contained in:
Robbbert 2016-06-26 23:59:43 +10:00
parent a467a8c057
commit 9e261a0ca8

View File

@ -332,7 +332,7 @@ void text_layout::truncate_wrap()
float elipsis_width = get_char_width(elipsis, style.size);
// where should we really truncate from?
while (truncate_position > 0 && m_current_line->character(truncate_position).xoffset + elipsis_width < width())
while (truncate_position > 0 && m_current_line->character(truncate_position).xoffset + elipsis_width > width())
truncate_position--;
// truncate!!!