diff options
author | rubidium <rubidium@openttd.org> | 2012-04-10 20:16:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-04-10 20:16:51 +0000 |
commit | 54e36c4ff83d86346479bfae0e9bcef64afb1a49 (patch) | |
tree | e5a3d23f17267095d47dda66face3f2e7c77d67a /src/table | |
parent | bf867483005c034e0040a976b94a2dc8698bd35f (diff) | |
download | openttd-54e36c4ff83d86346479bfae0e9bcef64afb1a49.tar.xz |
(svn r24111) -Codechange: use Colour more instead of manually bitstuffing
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/palettes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/palettes.h b/src/table/palettes.h index 8e720fca8..e190134c9 100644 --- a/src/table/palettes.h +++ b/src/table/palettes.h @@ -11,13 +11,13 @@ #include "../core/endian_type.hpp" -#define M(r, g, b) { 0xFF000000U | (r) << 16 | (g) << 8 | (b) } +#define M(r, g, b) Colour(r, g, b) /** Colour palette (DOS) */ static const Palette _palette = { { /* transparent */ - { 0}, + Colour(0, 0, 0, 0), /* grey scale */ M( 16, 16, 16), M( 32, 32, 32), M( 48, 48, 48), M( 65, 64, 65), M( 82, 80, 82), M( 98, 101, 98), M(115, 117, 115), |