From 0e3e3df8c385ed8ad6e4612570016ffae03169a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Dec 2013 12:40:55 +0300 Subject: fix compilation errors with different flags. --- src/render/sdl2softwaregraphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/sdl2softwaregraphics.cpp') diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index daaa75387..f1581d6a2 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -216,7 +216,7 @@ void SDL2SoftwareGraphics::drawImageCached(const Image *const image, SDL_Surface *const src = image->mSDLSurface; int srcX = bounds.x; - const int srcY = bounds.y; + int srcY = bounds.y; x += top.xOffset; y += top.yOffset; @@ -667,7 +667,7 @@ void SDL2SoftwareGraphics::calcPattern(ImageCollection* const vertCol, vert = vertCol->currentVert; } - calcImagePattern(vert, image, x, y, w, h); + calcPatternInline(vert, image, x, y, w, h); } void SDL2SoftwareGraphics::calcTileVertexes(ImageVertexes *const vert, -- cgit v1.2.3-60-g2f50