summaryrefslogtreecommitdiff
path: root/src/viewport.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/viewport.cpp
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r--src/viewport.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 2855c112d..ab3e087b4 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -47,34 +47,34 @@ static bool _offset_ground_sprites;
* 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;
+ ChildScreenSpriteToDraw *next;
+};
-typedef struct ParentSpriteToDraw {
+struct ParentSpriteToDraw {
SpriteID image;
SpriteID pal;
int32 left;
@@ -89,13 +89,13 @@ typedef struct ParentSpriteToDraw {
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 @@ typedef struct ViewportDrawer {
byte combine_sprites;
int offs_x, offs_y; // used when drawing ground sprites relative
-} ViewportDrawer;
+};
static ViewportDrawer *_cur_vd;