diff options
author | tron <tron@openttd.org> | 2005-06-30 05:27:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-30 05:27:32 +0000 |
commit | 9d75047211c04cc9cb1eb04fb53ebb1aacf0d326 (patch) | |
tree | 820d87a559381f3d0fa23a7bf0763578868b7150 /gfx.h | |
parent | 6e72d514b7b353d92379855aa44907d9399c83a7 (diff) | |
download | openttd-9d75047211c04cc9cb1eb04fb53ebb1aacf0d326.tar.xz |
(svn r2497) Use a struct array for palette entries instead of a flat byte array
Diffstat (limited to 'gfx.h')
-rw-r--r-- | gfx.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -94,9 +94,13 @@ VARDEF bool _use_dos_palette; //enum { NUM_SPRITES = 0x1500 }; enum { NUM_SPRITES = 0x3500 }; // 1500 + space for custom GRF sets -/* tables.h */ -extern byte _palettes[4][256 * 3]; -VARDEF byte _cur_palette[768]; +typedef struct Colour { + byte r; + byte g; + byte b; +} Colour; + +extern Colour _cur_palette[256]; typedef enum StringColorFlags { |