mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Gamelist: Remove line breaks in game titles, seen in fan translation patch.
This commit is contained in:
parent
ab13e37ebe
commit
dd6ae19e7e
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ void GameButton::Draw(UIContext &dc) {
|
||||||
dc.PushScissor(bounds_);
|
dc.PushScissor(bounds_);
|
||||||
if (title_.empty() && !ginfo->title.empty()) {
|
if (title_.empty() && !ginfo->title.empty()) {
|
||||||
title_ = ReplaceAll(ginfo->title + discNumInfo, "&", "&&");
|
title_ = ReplaceAll(ginfo->title + discNumInfo, "&", "&&");
|
||||||
|
title_ = ReplaceAll(title_, "\n", " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
dc.MeasureText(dc.GetFontStyle(), title_.c_str(), &tw, &th, 0);
|
dc.MeasureText(dc.GetFontStyle(), title_.c_str(), &tw, &th, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue