Codechange: Return fontcache font name as std::string.

This commit is contained in:
Peter Nelson
2023-05-26 19:32:41 +01:00
committed by Patric Stout
parent 532007737e
commit 3ae1a80576
7 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ static HFONT HFontFromFont(Font *font)
logfont.lfHeight = font->fc->GetHeight();
logfont.lfWeight = FW_NORMAL;
logfont.lfCharSet = DEFAULT_CHARSET;
convert_to_fs(font->fc->GetFontName(), logfont.lfFaceName, lengthof(logfont.lfFaceName));
convert_to_fs(font->fc->GetFontName().c_str(), logfont.lfFaceName, lengthof(logfont.lfFaceName));
return CreateFontIndirect(&logfont);
}