summaryrefslogtreecommitdiff
path: root/src/gfx_type.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-08 02:28:28 +0000
committerbelugas <belugas@openttd.org>2008-08-08 02:28:28 +0000
commita2f590aeecf6a683d461ceea1fc0a22bd7a951fa (patch)
tree141bf0de96ec62e5aaf3d67c25c97fc2dfd3e854 /src/gfx_type.h
parent3c2f69bf623d4ee2de646d2bf801762d88b86858 (diff)
downloadopenttd-a2f590aeecf6a683d461ceea1fc0a22bd7a951fa.tar.xz
(svn r14016) -Codechange: Remove some magical numbers
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r--src/gfx_type.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h
index a85a32434..87785343b 100644
--- a/src/gfx_type.h
+++ b/src/gfx_type.h
@@ -191,7 +191,7 @@ enum Colours {
COLOUR_GREY,
COLOUR_WHITE,
COLOUR_END,
- INVALID_COLOUR = 0xFF
+ INVALID_COLOUR = 0xFF,
};
/** Colour of the strings, see _string_colormap in table/palettes.h or docs/ottd-colourtext-palette.png */
@@ -216,6 +216,13 @@ enum TextColour {
TC_BLACK = 0x10,
};
+/** Defines a few values that are related to animations using palette changes */
+enum PaletteAnimationSizes {
+ PALETTE_ANIM_SIZE_WIN = 28, ///< number of animated colours in Windows palette
+ PALETTE_ANIM_SIZE_DOS = 38, ///< number of animated colours in DOS palette
+ PALETTE_ANIM_SIZE_START = 217, ///< Index in the _palettes array from which all animations are taking places (table/palettes.h)
+};
+
enum StringColorFlags {
IS_PALETTE_COLOR = 0x100, ///< color value is already a real palette color index, not an index of a StringColor
};