diff options
author | glx <glx@openttd.org> | 2009-02-02 13:44:19 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-02-02 13:44:19 +0000 |
commit | a2b3d77df8a9a03a5e8fed3171bb2ad28f0f4782 (patch) | |
tree | d0499793c0769c41c2f9a183a40b3329e62a2d2e | |
parent | ea44395b1e906382acdf12edebb0645f751ab3ff (diff) | |
download | openttd-a2b3d77df8a9a03a5e8fed3171bb2ad28f0f4782.tar.xz |
(svn r15315) -Fix (r15314): make gcc happy (for once)
-rw-r--r-- | src/fontcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 1669ec6dc..96a69db11 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -169,6 +169,7 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont) { static char font_name[MAX_PATH]; const char *ret_font_name = NULL; + uint pos = 0; HFONT font = CreateFontIndirect(&logfont->elfLogFont); if (font == NULL) goto err1; @@ -182,7 +183,6 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont) dw = GetFontData(dc, 'eman', 0, buf, dw); if (dw == GDI_ERROR) goto err3; - uint pos = 0; uint16 format = buf[pos++] << 8; format += buf[pos++]; assert(format == 0); |