From 1ddce1dcc8ae30de1596d80bca9afe9316084e60 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 20:28:44 +0100 Subject: [PATCH] League table: show club names in full like the original The name column was clipped at 78 pixels (about 17 characters). The real 3.7 shows 19 character names completely and the games column covers the overlap. Co-Authored-By: Claude Sonnet 5.5 --- docs/release/1.0.12/RELEASE_NOTES.md | 4 ++++ src/ui/league_table.cpp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/release/1.0.12/RELEASE_NOTES.md b/docs/release/1.0.12/RELEASE_NOTES.md index 1dd83b8..889bd18 100644 --- a/docs/release/1.0.12/RELEASE_NOTES.md +++ b/docs/release/1.0.12/RELEASE_NOTES.md @@ -49,6 +49,10 @@ already did). Now pressed while held: bottom row with status texts (rejections, hints). The original has no such line; the club name now always stays there. +- **League table: club names in full.** Names were cut after about 17 characters + ("EINTRACHT FRANKFU"); the original shows them completely ("EINTRACHT FRANKFURT", + "TSG 1899 HOFFENHEIM") and lets the games column cover what reaches into it. + ## Internal - The drawing of the wide push button, of the calculator window (panel and keys) and diff --git a/src/ui/league_table.cpp b/src/ui/league_table.cpp index 432d111..937b13f 100644 --- a/src/ui/league_table.cpp +++ b/src/ui/league_table.cpp @@ -392,7 +392,10 @@ Image LeagueTableScreen::render() const { text(image, 12, y, "(" + formatted_field(row.previous_rank, 2) + original_text(exe_, ::bmh::layout::CupDraw_DrawGroupOverview_TextPointer3), previous_color, 24); } - text(image, 30, y, row.name, row.name_color, 78); + // The original does not clip the name: 19 character names (BORUSSIA M'GLADBACH, TSG 1899 HOFFENHEIM) are + // shown in full and the games column, drawn afterwards at x=0x72, simply covers what reaches into it + // (checked against the real 3.7 table). 120 only guards against absurdly long names. + text(image, 30, y, row.name, row.name_color, 120); const std::string matches = formatted_field(row.games, 2) + original_text(exe_, ::bmh::layout::CupDraw_DrawGroupOverview_TextPointer4) + formatted_field(row.wins, 2) + original_text(exe_, ::bmh::layout::CupDraw_DrawGroupOverview_TextPointer5) + formatted_field(row.draws, 2) + original_text(exe_, ::bmh::layout::CupDraw_DrawGroupOverview_TextPointer5) +