1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)

This commit is contained in:
tron
2005-02-10 12:14:38 +00:00
parent 2a151d9354
commit 94c75f33bb
7 changed files with 33 additions and 27 deletions

10
gfx.h
View File

@@ -17,16 +17,6 @@ struct DrawPixelInfo {
};
typedef struct Sprite {
byte info;
byte height;
uint16 width; // LE!
int16 x_offs; // LE!
int16 y_offs; // LE!
byte data[VARARRAY_SIZE];
} Sprite;
assert_compile(sizeof(Sprite) == 8);
typedef struct CursorVars {
Point pos, size, offs, delta;
Point draw_pos, draw_size;