diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-02-21 20:48:21 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-02-23 11:25:39 +0100 |
commit | b427ddce887617f17aefdbe1f22ca1e00d013c3d (patch) | |
tree | 06fd938bd05dd716ba2d573978789f2c8e068505 /src/os/windows/font_win32.h | |
parent | beeb9e0a1b1c6ceb61499edeb8cd6cf7999d12ea (diff) | |
download | openttd-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.h | 2 |
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; } }; |