[gnome-games] aisleriot: Allow passing -DCARD_SLOT_PROP in CPPFLAGS



commit 533765403c722b1a4c7f0330296affd5b84570ca
Author: Christian Persch <chpe gnome org>
Date:   Sun Jul 12 13:17:57 2009 +0200

    aisleriot: Allow passing -DCARD_SLOT_PROP in CPPFLAGS
    
    Only define CARD_SLOT_PROP if it's not defined already. This allows
    easier experimenting by passing it via CPPFLAGS.

 aisleriot/board-noclutter.c |    2 ++
 aisleriot/board.c           |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index 54f1600..d02da20 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -59,11 +59,13 @@
 #define MAX_OVERHANG (0.2)
 
 /* The proportion of a slot dedicated to the card (horiz or vert). */
+#ifndef CARD_SLOT_PROP
 #ifdef HAVE_HILDON
 #define CARD_SLOT_PROP (0.9)
 #else
 #define CARD_SLOT_PROP (0.8)
 #endif
+#endif /* !CARD_SLOT_PROP */
 
 #define DOUBLE_TO_INT_CEIL(d) ((int) (d + 0.5))
 
diff --git a/aisleriot/board.c b/aisleriot/board.c
index 62ad753..b2b8b78 100644
--- a/aisleriot/board.c
+++ b/aisleriot/board.c
@@ -64,11 +64,13 @@
 #define MAX_OVERHANG (0.2)
 
 /* The proportion of a slot dedicated to the card (horiz or vert). */
+#ifndef CARD_SLOT_PROP
 #ifdef HAVE_HILDON
 #define CARD_SLOT_PROP (0.9)
 #else
 #define CARD_SLOT_PROP (0.8)
 #endif
+#endif /* !CARD_SLOT_PROP */
 
 #define DOUBLE_TO_INT_CEIL(d) ((int) (d + 0.5))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]