From e27b73f02b8f351a0b58a5fbef5e26b0f3551502 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 18 Apr 2021 00:09:33 -0400 Subject: Flip card rendering --- bin/freecell.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/freecell.c b/bin/freecell.c index e0c749d1..762b5552 100644 --- a/bin/freecell.c +++ b/bin/freecell.c @@ -232,17 +232,6 @@ static void drawCard(bool hi, int y, int x, Card card) { if (!card) return; move(y, x); attr_set(hi ? A_REVERSE : A_NORMAL, (card & Color) ? 2 : 1, NULL); - switch (card & Rank) { - break; case A: addstr("A "); - break; case 10: addstr("10"); - break; case J: addstr("J "); - break; case Q: addstr("Q "); - break; case K: addstr("K "); - break; default: { - addch('0' + (card & Rank)); - addch(' '); - } - } switch (card & Suit) { break; case Club: addstr("\u2663"); break; case Diamond: addstr("\u2666"); @@ -250,6 +239,17 @@ static void drawCard(bool hi, int y, int x, Card card) { break; case Heart: addstr("\u2665"); break; default:; } + switch (card & Rank) { + break; case A: addstr(" A"); + break; case 10: addstr("10"); + break; case J: addstr(" J"); + break; case Q: addstr(" Q"); + break; case K: addstr(" K"); + break; default: { + addch(' '); + addch('0' + (card & Rank)); + } + } attr_set(A_NORMAL, 0, NULL); } -- cgit 1.4.1 m'>
path: root/bin/when.y (unfollow)
Commit message (Expand)Author
2019-12-23Reformat music.txtJune McEnroe
2019-12-23Rename music.md to music.txtJune McEnroe
2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe
2019-12-22Add license header to cgit CSSJune McEnroe
2019-12-22Add The Book of EttaJune McEnroe
2019-12-21Revert "Add first working version of imbox"June McEnroe
2019-12-21Add first working version of imboxJune McEnroe
2019-12-20Respect mailmap in gl pretty formatJune McEnroe
2019-12-20Set LANG in cgit filtersJune McEnroe
2019-12-20Source .editrc before applying -v or -eJune McEnroe
2019-12-20Disable signing commitsJune McEnroe
2019-12-19Ignore about-filterJune McEnroe
2019-12-19Fix matching make tags with no sourcesJune McEnroe
2019-12-19Avoid matching := assignments as tagsJune McEnroe
2019-12-18Hide line numbers when rendering mdocJune McEnroe
2019-12-18Customize cgit CSSJune McEnroe
2019-12-18Use :target rather than :focus pseudo-classJune McEnroe
2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe
2019-12-18Add git.causal.agency cgit configJune McEnroe
2019-12-18Bail from hi if input is binaryJune McEnroe
2019-12-16Post "cgit setup"June McEnroe