summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-28 01:34:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-28 01:34:04 +0300
commit7900408adc2b6db601373de2730a80707ec4c837 (patch)
treed86e05a374a1cb16c2e03d0a6a69358339fadac4 /src/gui/sdlfont.cpp
parentd05f3904b05e8af1cd319d75a380b2cce7edf77d (diff)
downloadplus-7900408adc2b6db601373de2730a80707ec4c837.tar.gz
plus-7900408adc2b6db601373de2730a80707ec4c837.tar.bz2
plus-7900408adc2b6db601373de2730a80707ec4c837.tar.xz
plus-7900408adc2b6db601373de2730a80707ec4c837.zip
Fix different warnings from previous commits.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp
index 3ece4b849..181bcef87 100644
--- a/src/gui/sdlfont.cpp
+++ b/src/gui/sdlfont.cpp
@@ -96,7 +96,6 @@ class SDLTextChunk final
|| color.b != color2.b)
{ // outlining
SDL_Color sdlCol2;
- const SDL_PixelFormat * const format = surface->format;
SDL_Surface *background = imageHelper->create32BitSurface(
width, height);
if (!background)
@@ -120,8 +119,10 @@ class SDLTextChunk final
}
SDL_Rect rect =
{
- OUTLINE_SIZE, 0,
- surface->w, surface->h
+ OUTLINE_SIZE,
+ 0,
+ static_cast<Uint16>(surface->w),
+ static_cast<Uint16>(surface->h)
};
// SDL_SetAlpha(surface2, 0, SDL_ALPHA_OPAQUE);
SDL_gfxBlitRGBA(surface2, nullptr, background, &rect);