summaryrefslogtreecommitdiff
path: root/src/gfx_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
committerfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
commit5e449b8fae1f5f9941a385a49eb1e958788809c2 (patch)
tree25417fb45b1166841824fccffbbd217810246bf6 /src/gfx_func.h
parent4b0a2fbe293acbfe138b788701b6e71c5356d0e8 (diff)
downloadopenttd-5e449b8fae1f5f9941a385a49eb1e958788809c2.tar.xz
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r--src/gfx_func.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h
index a0beed105..e864bbbb3 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -189,4 +189,20 @@ extern bool _palette_remap_grf[];
*/
#define GREY_SCALE(level) (level)
+static const uint8 PC_BLACK = GREY_SCALE(1); ///< Black palette colour.
+static const uint8 PC_GREY = GREY_SCALE(10); ///< Grey palette colour.
+static const uint8 PC_WHITE = GREY_SCALE(15); ///< White palette colour.
+
+static const uint8 PC_VERY_DARK_RED = 0xB2; ///< Almost-black red palette colour.
+static const uint8 PC_DARK_RED = 0xB4; ///< Dark red palette colour.
+static const uint8 PC_RED = 0xB8; ///< Red palette colour.
+
+static const uint8 PC_YELLOW = 0xBF; ///< Yellow palette colour.
+static const uint8 PC_LIGHT_YELLOW = 0x44; ///< Light yellow palette colour.
+static const uint8 PC_VERY_LIGHT_YELLOW = 0x45; ///< Almost-white yellow palette colour.
+
+static const uint8 PC_GREEN = 0xD0; ///< Green palette colour.
+
+static const uint8 PC_DARK_BLUE = 0x9D; ///< Dark blue palette colour.
+
#endif /* GFX_FUNC_H */