summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-01 22:19:21 +0300
commit869c7fe8852248f03849c930c894d8fa218631b5 (patch)
treef86356b6565f68ebd8ba8f6b69ea3a6b5e87b251 /src/gui/sdlfont.cpp
parentf659dfb18c130896f5c51fffca7fbe79f6eba502 (diff)
downloadplus-869c7fe8852248f03849c930c894d8fa218631b5.tar.gz
plus-869c7fe8852248f03849c930c894d8fa218631b5.tar.bz2
plus-869c7fe8852248f03849c930c894d8fa218631b5.tar.xz
plus-869c7fe8852248f03849c930c894d8fa218631b5.zip
Fix code style.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp5
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