summaryrefslogtreecommitdiff
path: root/src/fontcache.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/fontcache.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/fontcache.cpp')
-rw-r--r--src/fontcache.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 133f3e3da..7c358145b 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -39,10 +39,8 @@ static int _ascender[FS_END];
FreeTypeSettings _freetype;
-enum {
- FACE_COLOUR = 1,
- SHADOW_COLOUR = 2,
-};
+static const byte FACE_COLOUR = 1;
+static const byte SHADOW_COLOUR = 2;
/** Get the font loaded into a Freetype face by using a font-name.
* If no appropiate font is found, the function returns an error */