summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-08 18:13:29 +0000
committerrubidium <rubidium@openttd.org>2011-12-08 18:13:29 +0000
commit2ccbd2a6f5d0e3b9000122fe1845482241334f41 (patch)
treed8a346dc40e1f7f85376c413a0c12065e277ae49 /src/table
parent9e8b76650a084bb26b32113317933217b1d99e42 (diff)
downloadopenttd-2ccbd2a6f5d0e3b9000122fe1845482241334f41.tar.xz
(svn r23446) -Codechange: move _cur_palette and it's related first/count dirty variables into a single structure
Diffstat (limited to 'src/table')
-rw-r--r--src/table/palettes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/table/palettes.h b/src/table/palettes.h
index 6f246ba68..8e720fca8 100644
--- a/src/table/palettes.h
+++ b/src/table/palettes.h
@@ -14,7 +14,8 @@
#define M(r, g, b) { 0xFF000000U | (r) << 16 | (g) << 8 | (b) }
/** Colour palette (DOS) */
-static const Colour _palette[256] = {
+static const Palette _palette = {
+ {
/* transparent */
{ 0},
/* grey scale */
@@ -89,6 +90,9 @@ static const Colour _palette[256] = {
M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0),
/* pure white */
M(252, 252, 252)
+ },
+ 0, // First dirty
+ 256 // Dirty count
};
/** Description of the length of the palette cycle animations */