mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-18 00:04:09 +00:00
Merge branch 'master' into VC/TextFinish
# Conflicts: # src/text/Text.cpp
This commit is contained in:
commit
9dba2386bb
7 changed files with 35 additions and 31 deletions
|
@ -5,6 +5,32 @@
|
|||
#include "Font.h"
|
||||
#include "Timer.h"
|
||||
|
||||
void
|
||||
AsciiToUnicode(const char *src, wchar *dst)
|
||||
{
|
||||
while((*dst++ = (unsigned char)*src++) != '\0');
|
||||
}
|
||||
|
||||
void
|
||||
UnicodeStrcat(wchar *dst, wchar *append)
|
||||
{
|
||||
UnicodeStrcpy(&dst[UnicodeStrlen(dst)], append);
|
||||
}
|
||||
|
||||
void
|
||||
UnicodeStrcpy(wchar *dst, const wchar *src)
|
||||
{
|
||||
while((*dst++ = *src++) != '\0');
|
||||
}
|
||||
|
||||
int
|
||||
UnicodeStrlen(const wchar *str)
|
||||
{
|
||||
int len;
|
||||
for(len = 0; *str != '\0'; len++, str++);
|
||||
return len;
|
||||
}
|
||||
|
||||
CFontDetails CFont::Details;
|
||||
int16 CFont::NewLine;
|
||||
CSprite2d CFont::Sprite[MAX_FONTS];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue