Fix CFont type uint16 -> wchar

This commit is contained in:
Sergeanur 2020-04-02 09:51:35 +03:00
commit 92ec403191
2 changed files with 31 additions and 31 deletions

View file

@ -64,18 +64,18 @@ public:
static void Initialise(void);
static void Shutdown(void);
static void InitPerFrame(void);
static void PrintChar(float x, float y, uint16 c);
static void PrintString(float x, float y, uint16 *s);
static int GetNumberLines(float xstart, float ystart, uint16 *s);
static void GetTextRect(CRect *rect, float xstart, float ystart, uint16 *s);
static void PrintString(float x, float y, uint16 *start, uint16 *end, float spwidth);
static float GetCharacterWidth(uint16 c);
static float GetCharacterSize(uint16 c);
static float GetStringWidth(uint16 *s, bool spaces = false);
static uint16 *GetNextSpace(uint16 *s);
static uint16 *ParseToken(uint16 *s, uint16*);
static void PrintChar(float x, float y, wchar c);
static void PrintString(float x, float y, wchar *s);
static int GetNumberLines(float xstart, float ystart, wchar *s);
static void GetTextRect(CRect *rect, float xstart, float ystart, wchar *s);
static void PrintString(float x, float y, wchar *start, wchar *end, float spwidth);
static float GetCharacterWidth(wchar c);
static float GetCharacterSize(wchar c);
static float GetStringWidth(wchar *s, bool spaces = false);
static wchar *GetNextSpace(wchar *s);
static wchar *ParseToken(wchar *s, wchar*);
static void DrawFonts(void);
static uint16 character_code(uint8 c);
static wchar character_code(uint8 c);
static CFontDetails GetDetails() { return Details; }
static void SetScale(float x, float y) { Details.scaleX = x; Details.scaleY = y; }