diff options
author | frosch <frosch@openttd.org> | 2016-08-15 18:33:08 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-08-15 18:33:08 +0000 |
commit | 3cb7d9703b376b8798e5726591add2d4e2a17223 (patch) | |
tree | 745e4ef13842d3ac7044ac6b62a15e1761232e84 /src/gfx_type.h | |
parent | 4d1843a95e26a64ff3ff0b967d721794dbf0fe46 (diff) | |
download | openttd-3cb7d9703b376b8798e5726591add2d4e2a17223.tar.xz |
(svn r27628) -Codechange: Prepare for drawing cursors consisting of multiple sprites.
Diffstat (limited to 'src/gfx_type.h')
-rw-r--r-- | src/gfx_type.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gfx_type.h b/src/gfx_type.h index 707887619..ca9bf9fce 100644 --- a/src/gfx_type.h +++ b/src/gfx_type.h @@ -127,9 +127,11 @@ struct CursorVars { int h_wheel; /* Mouse appearance */ - CursorID sprite; ///< current image of cursor - PaletteID pal; - Point size, offs; ///< sprite properties + PalSpriteID sprite_seq[16]; ///< current image of cursor + Point sprite_pos[16]; ///< relative position of individual sprites + uint sprite_count; ///< number of sprites to draw + Point total_offs, total_size; ///< union of sprite properties + Point draw_pos, draw_size; ///< position and size bounding-box for drawing const AnimCursor *animate_list; ///< in case of animated cursor, list of frames @@ -141,7 +143,6 @@ struct CursorVars { bool in_window; ///< mouse inside this window, determines drawing logic /* Drag data */ - int short_vehicle_offset; ///< offset of the X for short vehicles bool vehchain; ///< vehicle chain is dragged bool UpdateCursorPosition(int x, int y, bool queued_warp); |