summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-02-05 23:12:23 +0000
committerDarkvater <darkvater@openttd.org>2006-02-05 23:12:23 +0000
commit7f1cda519c7628c936a0237d101c4409e576b6f0 (patch)
tree96143abafba71fa670e944991ea81fde11a01597 /smallmap_gui.c
parentf80bf7fa68b73a7117a9b2480c86d328a589178c (diff)
downloadopenttd-7f1cda519c7628c936a0237d101c4409e576b6f0.tar.xz
(svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations.
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r--smallmap_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c
index f1e7e547e..6680886c1 100644
--- a/smallmap_gui.c
+++ b/smallmap_gui.c
@@ -231,11 +231,7 @@ static const uint16 * const _legend_table[] = {
# define WRITE_PIXELS_OR(dst,val) *(uint32*)(dst) |= (val);
#endif
-#if defined(TTD_BIG_ENDIAN)
-# define MKCOLOR(x) BSWAP32(x)
-#elif defined(TTD_LITTLE_ENDIAN)
-# define MKCOLOR(x) (x)
-#endif
+#define MKCOLOR(x) TO_LE32X(x)
/* Height encodings; 16 levels XXX - needs updating for more/finer heights! */
static const uint32 _map_height_bits[16] = {