summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-30 05:27:32 +0000
committertron <tron@openttd.org>2005-06-30 05:27:32 +0000
commit9d75047211c04cc9cb1eb04fb53ebb1aacf0d326 (patch)
tree820d87a559381f3d0fa23a7bf0763578868b7150 /gfx.h
parent6e72d514b7b353d92379855aa44907d9399c83a7 (diff)
downloadopenttd-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.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gfx.h b/gfx.h
index b56b28ef2..9b8bd8814 100644
--- a/gfx.h
+++ b/gfx.h
@@ -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 {