diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-04-02 18:35:00 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-04-07 09:31:47 +0200 |
commit | 746f1ca11a18af97e4fed06e5ac1af622bf21d35 (patch) | |
tree | f8d9ef3b48b570d3b6827f19092c92e3acf74e6e /src/os/windows/font_win32.cpp | |
parent | e0561dbded57f195e7842cf69764e3ee2c3a71da (diff) | |
download | openttd-746f1ca11a18af97e4fed06e5ac1af622bf21d35.tar.xz |
Codechange: Remove the now meaningless console_cp parameter from OTTD2FS
Diffstat (limited to 'src/os/windows/font_win32.cpp')
-rw-r--r-- | src/os/windows/font_win32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/windows/font_win32.cpp b/src/os/windows/font_win32.cpp index 1d923ddb2..59d5e0ad8 100644 --- a/src/os/windows/font_win32.cpp +++ b/src/os/windows/font_win32.cpp @@ -606,12 +606,12 @@ void LoadWin32Font(FontSize fs) /* See if this is an absolute path. */ if (FileExists(settings->font)) { - convert_to_fs(settings->font, fontPath, lengthof(fontPath), false); + convert_to_fs(settings->font, fontPath, lengthof(fontPath)); } else { /* Scan the search-paths to see if it can be found. */ std::string full_font = FioFindFullPath(BASE_DIR, settings->font); if (!full_font.empty()) { - convert_to_fs(full_font.c_str(), fontPath, lengthof(fontPath), false); + convert_to_fs(full_font.c_str(), fontPath, lengthof(fontPath)); } } @@ -649,7 +649,7 @@ void LoadWin32Font(FontSize fs) if (logfont.lfFaceName[0] == 0) { logfont.lfWeight = strcasestr(settings->font, " bold") != nullptr ? FW_BOLD : FW_NORMAL; // Poor man's way to allow selecting bold fonts. - convert_to_fs(settings->font, logfont.lfFaceName, lengthof(logfont.lfFaceName), false); + convert_to_fs(settings->font, logfont.lfFaceName, lengthof(logfont.lfFaceName)); } HFONT font = CreateFontIndirect(&logfont); |