1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Swap ( and ) with right2left reading

This commit is contained in:
Mathieu Schroeter 2019-02-06 18:36:35 +01:00
parent 1556db8d05
commit d25280490e

View File

@ -212,7 +212,16 @@ DrawText (
numberSize--;
}
rank = GetOffset (pText);
rank = GetOffset (pText);
if (IsRightReading ())
{
if (rank == '(')
rank = ')';
else if (rank == ')')
rank = '(';
}
auto inc = rank > 127;
auto lg = GetCharWidth (pText, font);