diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-05-17 23:31:49 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-05-21 20:02:34 +0200 |
commit | 808c8198d5ab61c457d0351ff7971b75ee17c10a (patch) | |
tree | 70459dfbd4c69dd9e82282eed2c6fe68383774f3 /src/gfx_func.h | |
parent | 43cd892e0c2c012355d7eb6d47cfa4ad4b7e68eb (diff) | |
download | openttd-808c8198d5ab61c457d0351ff7971b75ee17c10a.tar.xz |
Codechange: Consistently use WChar when passing characters around, and also define it as char32_t.
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r-- | src/gfx_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index 3def1c85a..0ccdabac3 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -112,7 +112,7 @@ int DrawString(int left, int right, int top, StringID str, TextColour colour = T int DrawStringMultiLine(int left, int right, int top, int bottom, const char *str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL); int DrawStringMultiLine(int left, int right, int top, int bottom, StringID str, TextColour colour = TC_FROMSTRING, StringAlignment align = (SA_TOP | SA_LEFT), bool underline = false, FontSize fontsize = FS_NORMAL); -void DrawCharCentered(uint32 c, int x, int y, TextColour colour); +void DrawCharCentered(WChar c, int x, int y, TextColour colour); void GfxFillRect(int left, int top, int right, int bottom, int colour, FillRectMode mode = FILLRECT_OPAQUE); void GfxFillPolygon(const std::vector<Point> &shape, int colour, FillRectMode mode = FILLRECT_OPAQUE); @@ -164,7 +164,7 @@ void SortResolutions(); bool ToggleFullScreen(bool fs); /* gfx.cpp */ -byte GetCharacterWidth(FontSize size, uint32 key); +byte GetCharacterWidth(FontSize size, WChar key); byte GetDigitWidth(FontSize size = FS_NORMAL); void GetBroadestDigit(uint *front, uint *next, FontSize size = FS_NORMAL); |