summaryrefslogtreecommitdiff
path: root/src/os/windows/font_win32.h
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2021-02-21 20:48:21 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2021-02-23 11:25:39 +0100
commitb427ddce887617f17aefdbe1f22ca1e00d013c3d (patch)
tree06fd938bd05dd716ba2d573978789f2c8e068505 /src/os/windows/font_win32.h
parentbeeb9e0a1b1c6ceb61499edeb8cd6cf7999d12ea (diff)
downloadopenttd-b427ddce887617f17aefdbe1f22ca1e00d013c3d.tar.xz
Codechange: Switch to explicit wide strings
Diffstat (limited to 'src/os/windows/font_win32.h')
-rw-r--r--src/os/windows/font_win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/font_win32.h b/src/os/windows/font_win32.h
index 9a552125f..ba413fae5 100644
--- a/src/os/windows/font_win32.h
+++ b/src/os/windows/font_win32.h
@@ -33,7 +33,7 @@ public:
~Win32FontCache();
void ClearFontCache() override;
GlyphID MapCharToGlyph(WChar key) override;
- const char *GetFontName() override { return WIDE_TO_MB(this->logfont.lfFaceName); }
+ const char *GetFontName() override { return FS2OTTD(this->logfont.lfFaceName); }
const void *GetOSHandle() override { return &this->logfont; }
};