summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-04-19 19:51:17 -0400
committerJune McEnroe <june@causal.agency>2021-04-26 17:33:20 -0400
commitaf79747954d07b0d7077d051966665e854238fac (patch)
tree0dee7d4ef26fd4a3f4d3f3c3f9017d3e1728a08a
parentOnly use cells for moveColumn (diff)
downloadsrc-af79747954d07b0d7077d051966665e854238fac.tar.gz
src-af79747954d07b0d7077d051966665e854238fac.zip
Draw foundations in reverse order
-rw-r--r--bin/freecell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/freecell.c b/bin/freecell.c
index 6fce1db7..11bed1c0 100644
--- a/bin/freecell.c
+++ b/bin/freecell.c
@@ -284,7 +284,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;