From 869c7fe8852248f03849c930c894d8fa218631b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Feb 2013 22:19:21 +0300 Subject: Fix code style. --- src/gui/sdlfont.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/sdlfont.cpp') 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 -- cgit v1.2.3-60-g2f50