From 299b5b67aa80ba2539d7a91c60943060b0426b45 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 04:45:05 -0400 Subject: fix: light mode casino card rendering, video poker machine names --- internal/game/casino.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/game/casino.go') diff --git a/internal/game/casino.go b/internal/game/casino.go index 8d6e2a5..d433f2a 100644 --- a/internal/game/casino.go +++ b/internal/game/casino.go @@ -919,6 +919,14 @@ func cardArtLines(card casino.CardView, size int, unicode bool, style string, ar } key := card.Rank + strings.ToUpper(card.Suit[:1]) if configured := art.Art(key, size); len(configured) == size { + if unicode && style == "light" { + // The shared pip art draws a dark box frame, which leaves the top + // and bottom rows looking like the dark style. Replace only those + // two rows with the half-block edges the white body meets. + configured = append([]string(nil), configured...) + configured[0] = strings.Repeat("▄", utf8.RuneCountInString(configured[0])) + configured[size-1] = strings.Repeat("▀", utf8.RuneCountInString(configured[size-1])) + } return configured } return generatedCardArt(card.Rank, card.Suit, size, unicode, style) -- cgit v1.2.3