1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
This commit is contained in:
Mathieu Schroeter 2019-02-17 14:13:24 +01:00
parent 0e7bf44dcc
commit 82b97be5f9

View File

@ -183,7 +183,7 @@ DrawText (
CPixmap * pPixmap, Point pos, const char * pText, Sint32 font, Sint32 slope) CPixmap * pPixmap, Point pos, const char * pText, Sint32 font, Sint32 slope)
{ {
Sint32 rank; Sint32 rank;
bool isLatin = false; bool isLatin = false;
int numberSize = 0; int numberSize = 0;
const char * it = nullptr; const char * it = nullptr;
int skip = 0; int skip = 0;
@ -204,7 +204,7 @@ DrawText (
const auto test = [](const char * text) -> bool { const auto test = [](const char * text) -> bool {
return *text >= ' ' && *text <= '~'; return *text >= ' ' && *text <= '~';
}; };
it = pText; it = pText;
isLatin = test (pText); isLatin = test (pText);
if (isLatin) if (isLatin)
{ {