summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-19 19:51:17 -0400
committerJune McEnroe <june@causal.agency>2021-04-19 19:51:17 -0400
commita4039b1e8ca4dabd8a1a8dce9cd01dddc99c80b7 (patch)
tree42fb50855d390682b76b5388e21f5fd42ba82de2
parentOnly print info atexit without -t (diff)
downloadplay-a4039b1e8ca4dabd8a1a8dce9cd01dddc99c80b7.tar.gz
play-a4039b1e8ca4dabd8a1a8dce9cd01dddc99c80b7.zip
Draw foundations in reverse order
-rw-r--r--freecell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freecell.c b/freecell.c
index 45aff26..872009a 100644
--- a/freecell.c
+++ b/freecell.c
@@ -293,7 +293,7 @@ static void draw(void) {
 		char key;
 		if (i < Cell) {
 			y = FoundationY;
-			x = FoundationX + (i-Foundation) * (CardWidth+Padding);
+			x = FoundationX + (3-(i-Foundation)) * (CardWidth+Padding);
 			key = '_';
 		} else if (i < Tableau) {
 			y = CellY;