Gamelist: Remove line breaks in game titles, seen in fan translation patch.

This commit is contained in:
Henrik Rydgard 2013-12-11 10:32:39 +01:00
parent ab13e37ebe
commit dd6ae19e7e

View File

@ -209,6 +209,7 @@ void GameButton::Draw(UIContext &dc) {
dc.PushScissor(bounds_);
if (title_.empty() && !ginfo->title.empty()) {
title_ = ReplaceAll(ginfo->title + discNumInfo, "&", "&&");
title_ = ReplaceAll(title_, "\n", " ");
}
dc.MeasureText(dc.GetFontStyle(), title_.c_str(), &tw, &th, 0);