From b427ddce887617f17aefdbe1f22ca1e00d013c3d Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sun, 21 Feb 2021 20:48:21 +0100 Subject: Codechange: Switch to explicit wide strings --- src/os/windows/font_win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/windows/font_win32.h') 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; } }; -- cgit v1.2.3-70-g09d2