summaryrefslogtreecommitdiffstats
path: root/src/render/Font.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-11 09:39:04 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-11 09:39:04 +0200
commitb0becb5a2d28550a089e6e0ef2d041956dc887e4 (patch)
tree05f850e59f0995fa98969279618b02719fb1bd1c /src/render/Font.cpp
parentMerge branch 'master' into VC/TextFinish (diff)
downloadre3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar.gz
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar.bz2
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar.lz
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar.xz
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.tar.zst
re3-b0becb5a2d28550a089e6e0ef2d041956dc887e4.zip
Diffstat (limited to '')
-rw-r--r--src/render/Font.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/render/Font.cpp b/src/render/Font.cpp
index 7459c101..8deac7bf 100644
--- a/src/render/Font.cpp
+++ b/src/render/Font.cpp
@@ -31,6 +31,20 @@ UnicodeStrlen(const wchar *str)
return len;
}
+void
+UnicodeMakeUpperCase(wchar *dst, const wchar *src) //idk what to do with it, seems to be incorrect implementation by R*
+{
+ while (*src != '\0') {
+ if (*src < 'a' || *src > 'z')
+ *dst = *src;
+ else
+ *dst = *src - 32;
+ dst++;
+ src++;
+ }
+ *dst = '\0';
+}
+
CFontDetails CFont::Details;
int16 CFont::NewLine;
CSprite2d CFont::Sprite[MAX_FONTS];