summaryrefslogtreecommitdiff
path: root/smallmap_gui.c
diff options
context:
space:
mode:
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] = {