From aedb4f7ed8bea8f199a8e046e48aefb8fe6e5f22 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 28 Sep 2021 07:28:59 -0700 Subject: [PATCH] UI: Fix Game ID with insets on left side. In the game list. --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 1baa87abb1..bc9bc27da0 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -341,7 +341,7 @@ void GameButton::Draw(UIContext &dc) { dc.MeasureText(dc.GetFontStyle(), 0.7f, 0.7f, ginfo->id_version.c_str(), &vw, &vh, 0); availableWidth -= vw + 20; dc.SetFontScale(0.7f, 0.7f); - dc.DrawText(ginfo->id_version.c_str(), availableWidth + 160, bounds_.centerY(), style.fgColor, ALIGN_VCENTER); + dc.DrawText(ginfo->id_version.c_str(), bounds_.x + availableWidth + 160, bounds_.centerY(), style.fgColor, ALIGN_VCENTER); dc.SetFontScale(1.0f, 1.0f); } float sineWidth = std::max(0.0f, (tw - availableWidth)) / 2.0f;