summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-06-20 15:25:28 +0000
committeralberth <alberth@openttd.org>2009-06-20 15:25:28 +0000
commit0aed5bf7d7558e209ea57e277a85c408176147b6 (patch)
tree0d85c08dedd08c755b3ff2f5ca2e3046e00f96c4
parent8aa51823fca66887f21533e0de292faf6c907496 (diff)
downloadopenttd-0aed5bf7d7558e209ea57e277a85c408176147b6.tar.xz
(svn r16605) -Codechange: Move ASCII_LETTERSTART to the right source file.
-rw-r--r--src/fontcache.cpp2
-rw-r--r--src/gfx_func.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index e59104ac6..2a0a96bd8 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -37,6 +37,8 @@ enum {
SHADOW_COLOUR = 2,
};
+static const int ASCII_LETTERSTART = 32; ///< First printable ASCII letter.
+
/** Get the font loaded into a Freetype face by using a font-name.
* If no appropiate font is found, the function returns an error */
#ifdef WIN32
diff --git a/src/gfx_func.h b/src/gfx_func.h
index 1831f5696..dd7693f93 100644
--- a/src/gfx_func.h
+++ b/src/gfx_func.h
@@ -146,7 +146,6 @@ void SortResolutions(int count);
bool ToggleFullScreen(bool fs);
/* gfx.cpp */
-#define ASCII_LETTERSTART 32
extern FontSize _cur_fontsize;
byte GetCharacterWidth(FontSize size, uint32 key);