From 7900408adc2b6db601373de2730a80707ec4c837 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Dec 2012 01:34:04 +0300 Subject: Fix different warnings from previous commits. --- src/gui/sdlfont.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/sdlfont.cpp') 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(surface->w), + static_cast(surface->h) }; // SDL_SetAlpha(surface2, 0, SDL_ALPHA_OPAQUE); SDL_gfxBlitRGBA(surface2, nullptr, background, &rect); -- cgit v1.2.3-60-g2f50