Prefer a newer picture of the cup draw when the data set has one

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 19:25:27 +01:00
1 parent 20d4f890cc
commit 143e45e3a2
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -166,7 +166,9 @@ std::string App::render_opening() {
" Mannschaften") +
"<div class=\"opening-draw-scene " +
std::string(playing ? "is-drawing" : "") + "\">";
const auto art = renderer_.image("art.cup-draw-v1.png", false, 1800);
// a data set may carry a newer picture of the draw
auto art = renderer_.image("art.cup-draw-v2.png", false, 1800);
if (art.token.empty()) art = renderer_.image("art.cup-draw-v1.png", false, 1800);
if (!art.token.empty() && art.width > 0 && art.height > 0) {
const double ratio = double(art.width) / art.height;
const double width = std::min(2608.0, 846.0 * ratio),