about summary refs log tree commit diff
path: root/cards.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-15 15:58:29 -0400
committerJune McEnroe <june@causal.agency>2019-03-15 15:58:29 -0400
commit031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e (patch)
tree339f9aa8d1d5e46e29a3a342cc1f1e76a0a156c8 /cards.h
parentTurn on -Wpedantic (diff)
downloadcards-031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e.tar.gz
cards-031cbc6eb23bf5b58f0b3c3cba5ed26cc52cf58e.zip
Simplify Cards constants
Diffstat (limited to '')
-rw-r--r--cards.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/cards.h b/cards.h
index 0308cdf..2ce85a9 100644
--- a/cards.h
+++ b/cards.h
@@ -23,10 +23,8 @@
 enum {
 	Cards_Width = 71,
 	Cards_Height = 96,
-};
 
-enum Cards_Card {
-	Cards_Club,
+	Cards_Club = 0,
 	Cards_Diamond = 13,
 	Cards_Heart = 26,
 	Cards_Spade = 39,
@@ -43,11 +41,11 @@ enum Cards_Card {
 	Cards_X = 67,
 	Cards_O,
 
-	Cards_CardLen,
+	Cards_Count,
 };
 
 struct Cards {
-	struct SDL_Surface *surfaces[Cards_CardLen];
+	struct SDL_Surface *surfaces[Cards_Count];
 };
 
 struct Cards *Cards_Load(struct SDL_RWops *rw);