From 50baf6f8e3c9e0072836e0a69de0f03aee7f903d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 26 Sep 2024 12:02:18 +0200 Subject: [PATCH] Fix display of game titles, oops --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index a4294c12b5..fb06e42c27 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -344,7 +344,7 @@ void GameButton::Draw(UIContext &dc) { dc.PushScissor(bounds_); const std::string currentTitle = ginfo->GetTitle(); if (!currentTitle.empty()) { - title_ = ReplaceAll(title_, "\n", " "); + title_ = ReplaceAll(currentTitle, "\n", " "); } dc.MeasureText(dc.GetFontStyle(), 1.0f, 1.0f, title_, &tw, &th, 0);