From d20b65215516bd00bfdb00983798ecc86409d202 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 3 Oct 2013 00:48:12 +0200 Subject: [PATCH] No point in drawing spaces --- src/bitmap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bitmap.cpp b/src/bitmap.cpp index 490d671..f475819 100644 --- a/src/bitmap.cpp +++ b/src/bitmap.cpp @@ -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();