diff options
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r-- | src/gui/sdlfont.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index a205bbdc0..3a8f4a0b8 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -79,8 +79,6 @@ class SDLTextChunk final SDL_Surface *surface = TTF_RenderUTF8_Blended( font, strBuf, sdlCol); - const int width = surface->w; - const int height = surface->h; if (!surface) { @@ -89,6 +87,9 @@ class SDLTextChunk final return; } + const int width = surface->w; + const int height = surface->h; + if (color.r != color2.r || color.g != color2.g || color.b != color2.b) { // outlining |