Fix compilation error.

This commit is contained in:
StackZ
2021-03-17 13:57:55 +01:00
parent bbbb15c4bc
commit 4c6a15c5c7
+6 -6
View File
@@ -290,22 +290,22 @@ ITCM_CODE void Font::print(std::u16string_view text, int x, int y, bool top, int
if(rtl) { if(rtl) {
switch(*it) { switch(*it) {
case '(': case '(':
index = getCharIndex(')'); index = charIndex(')');
break; break;
case ')': case ')':
index = getCharIndex('('); index = charIndex('(');
break; break;
case '[': case '[':
index = getCharIndex(']'); index = charIndex(']');
break; break;
case ']': case ']':
index = getCharIndex('['); index = charIndex('[');
break; break;
case '<': case '<':
index = getCharIndex('>'); index = charIndex('>');
break; break;
case '>': case '>':
index = getCharIndex('<'); index = charIndex('<');
break; break;
default: default:
break; break;