diff options
author | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
commit | f94c83a3874c292ae0d90a7819c971e4bc7aebad (patch) | |
tree | a952b3b5ff3a44ae3b028ee995ee32f968cc2ba0 /src/gfx_type.h | |
parent | 02edae54542cf619cb8d0157d476be45df898119 (diff) | |
download | openttd-f94c83a3874c292ae0d90a7819c971e4bc7aebad.tar.xz |
(svn r18872) -Codechange: introduce PaletteID and use it
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index fd3495159..968c0c993 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -16,14 +16,15 @@ #include "core/geometry_type.hpp" #include "zoom_type.h" -typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colourtables +typedef uint32 SpriteID; ///< The number of a sprite, without mapping bits and colourtables +typedef uint32 PaletteID; ///< The number of the palette +typedef uint32 CursorID; ///< The number of the cursor (sprite) /** Combination of a palette sprite and a 'real' sprite */ struct PalSpriteID { SpriteID sprite; ///< The 'real' sprite - SpriteID pal; ///< The palette (use \c PAL_NONE) if not needed) + PaletteID pal; ///< The palette (use \c PAL_NONE) if not needed) }; -typedef int32 CursorID; enum WindowKeyCodes { WKC_SHIFT = 0x8000, @@ -113,8 +114,8 @@ struct CursorVars { Point pos, size, offs, delta; ///< position, size, offset from top-left, and movement Point draw_pos, draw_size; ///< position and size bounding-box for drawing int short_vehicle_offset; ///< offset of the X for short vehicles - SpriteID sprite; ///< current image of cursor - SpriteID pal; + CursorID sprite; ///< current image of cursor + PaletteID pal; int wheel; ///< mouse wheel movement |