diff -r 7624f942237f -r e1d1a12faaf7 src/viewport.cpp --- a/src/viewport.cpp Wed Mar 07 11:47:46 2007 +0000 +++ b/src/viewport.cpp Wed Mar 07 12:11:48 2007 +0000 @@ -47,34 +47,34 @@ * X < > Y * */ -typedef struct StringSpriteToDraw { +struct StringSpriteToDraw { uint16 string; uint16 color; - struct StringSpriteToDraw *next; + StringSpriteToDraw *next; int32 x; int32 y; uint32 params[2]; uint16 width; -} StringSpriteToDraw; - -typedef struct TileSpriteToDraw { +}; + +struct TileSpriteToDraw { SpriteID image; SpriteID pal; - struct TileSpriteToDraw *next; + TileSpriteToDraw *next; int32 x; int32 y; byte z; -} TileSpriteToDraw; - -typedef struct ChildScreenSpriteToDraw { +}; + +struct ChildScreenSpriteToDraw { SpriteID image; SpriteID pal; int32 x; int32 y; - struct ChildScreenSpriteToDraw *next; -} ChildScreenSpriteToDraw; - -typedef struct ParentSpriteToDraw { + ChildScreenSpriteToDraw *next; +}; + +struct ParentSpriteToDraw { SpriteID image; SpriteID pal; int32 left; @@ -89,13 +89,13 @@ byte unk16; byte zmin; byte zmax; -} ParentSpriteToDraw; +}; // Quick hack to know how much memory to reserve when allocating from the spritelist // to prevent a buffer overflow. #define LARGEST_SPRITELIST_STRUCT ParentSpriteToDraw -typedef struct ViewportDrawer { +struct ViewportDrawer { DrawPixelInfo dpi; byte *spritelist_mem; @@ -112,7 +112,7 @@ byte combine_sprites; int offs_x, offs_y; // used when drawing ground sprites relative -} ViewportDrawer; +}; static ViewportDrawer *_cur_vd;