diff options
author | Michael Lutz <michi@icosahedron.de> | 2018-11-25 02:02:20 +0100 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2019-05-14 11:21:36 +0100 |
commit | d2ed4260772e0a2ce8805e9c40525d0abb9345ea (patch) | |
tree | 2daef56dc038e55aa630a4f55f8af0eeeaff9b06 /src/strings_func.h | |
parent | 2675762ae9c58c47dc442b422927206c7bee13a8 (diff) | |
download | openttd-d2ed4260772e0a2ce8805e9c40525d0abb9345ea.tar.xz |
Codechange: [Win32] Pass a native GDI font description around when we have one, instead of repeatedly guessing the font.
Diffstat (limited to 'src/strings_func.h')
-rw-r--r-- | src/strings_func.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strings_func.h b/src/strings_func.h index d0fbde495..26ca56fbd 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -275,8 +275,9 @@ public: * Set the right font names. * @param settings The settings to modify. * @param font_name The new font name. + * @param os_data Opaque pointer to OS-specific data. */ - virtual void SetFontNames(struct FreeTypeSettings *settings, const char *font_name) = 0; + virtual void SetFontNames(struct FreeTypeSettings *settings, const char *font_name, const void *os_data = nullptr) = 0; bool FindMissingGlyphs(const char **str); }; |