summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-18 00:09:33 -0400
committerJune McEnroe <june@causal.agency>2021-04-18 00:09:33 -0400
commite27b73f02b8f351a0b58a5fbef5e26b0f3551502 (patch)
tree353afd48648cfe7c0d1362984d7a174d70d0c999 /bin
parentAdd freecell (diff)
downloadsrc-e27b73f02b8f351a0b58a5fbef5e26b0f3551502.tar.gz
src-e27b73f02b8f351a0b58a5fbef5e26b0f3551502.zip
Flip card rendering
Diffstat (limited to '')
-rw-r--r--bin/freecell.c22
1 files changed, 11 insertions, 11 deletions
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);
 }
 
d>Don't install rc scripts on other platformsJune McEnroe 2020-05-20Rewrite build and install like pounce 1.3June McEnroe 2020-05-20Update email addressesJune McEnroe 2020-04-23Call updateConsumer from handleError 1.2p1June McEnroe 2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe 2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe 2020-04-05Only set RCS on FreeBSDJune McEnroe 2020-04-05Log bans and unbansJune McEnroe 2020-04-05Parse mode types from ISUPPORTJune McEnroe 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe 2020-03-31Update unscoop catgirl matchersJune McEnroe 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe