summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 10:14:29 +0000
commit062dd0e24c283f210216ede06bbde0ed72c7ed25 (patch)
treea917e975f1f5d4c144ecad2c799cf58764a1f592 /src/gfx.cpp
parenta2d6961ab3c9aa43b95dfe9fa4699d290e5627e2 (diff)
downloadopenttd-062dd0e24c283f210216ede06bbde0ed72c7ed25.tar.xz
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 127a248da..6cfe68a7b 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -74,10 +74,9 @@ static Rect _invalid_rect;
static const byte *_colour_remap_ptr;
static byte _string_colourremap[3]; ///< Recoloursprite for stringdrawing. The grf loader ensures, that ST_FONT sprites only use colours 0 to 2.
-enum {
- DIRTY_BLOCK_HEIGHT = 8,
- DIRTY_BLOCK_WIDTH = 64,
-};
+static const uint DIRTY_BLOCK_HEIGHT = 8;
+static const uint DIRTY_BLOCK_WIDTH = 64;
+
static uint _dirty_bytes_per_line = 0;
static byte *_dirty_blocks = NULL;