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
commit1a60d29e09343c9af1f3850ae95eda0ba3aa5373 (patch)
treea2a3df852376bed1d90f3fa81880567856fc0bf5 /bin
parentAdd freecell (diff)
downloadsrc-1a60d29e09343c9af1f3850ae95eda0ba3aa5373.tar.gz
src-1a60d29e09343c9af1f3850ae95eda0ba3aa5373.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 5fb11679..d544590e 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);
 }