diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-01 22:19:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-01 22:19:21 +0300 |
commit | 869c7fe8852248f03849c930c894d8fa218631b5 (patch) | |
tree | f86356b6565f68ebd8ba8f6b69ea3a6b5e87b251 /src/gui/sdlfont.cpp | |
parent | f659dfb18c130896f5c51fffca7fbe79f6eba502 (diff) | |
download | manaverse-869c7fe8852248f03849c930c894d8fa218631b5.tar.gz manaverse-869c7fe8852248f03849c930c894d8fa218631b5.tar.bz2 manaverse-869c7fe8852248f03849c930c894d8fa218631b5.tar.xz manaverse-869c7fe8852248f03849c930c894d8fa218631b5.zip |
Fix code style.
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 |