diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 02:09:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 02:09:47 +0000 |
commit | 8dae160d0f1065ff40ecddc518b3905820f77f7a (patch) | |
tree | 36a060def733fe274859ec2afcbf3478faf2e63c /src/gfx_type.h | |
parent | 861e9cefb3c31f1cab46ddb068af7a3648f45b4a (diff) | |
download | openttd-8dae160d0f1065ff40ecddc518b3905820f77f7a.tar.xz |
(svn r15425) -Codechange: some color->colour changes and type safety.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index 20b5019a0..835015a8b 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -206,7 +206,10 @@ enum TextColour { TC_DARK_BLUE = 0x0F, TC_BLACK = 0x10, TC_INVALID = 0xFF, + + IS_PALETTE_COLOR = 0x100, ///< colour value is already a real palette colour index, not an index of a StringColour }; +DECLARE_ENUM_AS_BIT_SET(TextColour); /** Defines a few values that are related to animations using palette changes */ enum PaletteAnimationSizes { @@ -215,10 +218,6 @@ enum PaletteAnimationSizes { 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 -}; - /** Define the operation GfxFillRect performs */ enum FillRectMode { FILLRECT_OPAQUE, ///< Fill rectangle with a single color |