No point in drawing spaces

This commit is contained in:
Jonas Kulla 2013-10-03 00:48:12 +02:00
parent ca5f52d93d
commit d20b652155
1 changed files with 3 additions and 0 deletions

View File

@ -772,6 +772,9 @@ void Bitmap::drawText(const IntRect &rect, const char *str, int align)
if (*str == '\0')
return;
if (str[0] == ' ' && str[1] == '\0')
return;
flush();
TTF_Font *font = p->font->getSdlFont();