summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-31 12:40:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-31 12:40:55 +0300
commit0e3e3df8c385ed8ad6e4612570016ffae03169a6 (patch)
tree839b82ee1a87f70d47b73535832454716d7dd619 /src/render/sdl2softwaregraphics.cpp
parentb85fd67fb14f6a49c7e71f2265254150ba7a1240 (diff)
downloadplus-0e3e3df8c385ed8ad6e4612570016ffae03169a6.tar.gz
plus-0e3e3df8c385ed8ad6e4612570016ffae03169a6.tar.bz2
plus-0e3e3df8c385ed8ad6e4612570016ffae03169a6.tar.xz
plus-0e3e3df8c385ed8ad6e4612570016ffae03169a6.zip
fix compilation errors with different flags.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r--src/render/sdl2softwaregraphics.cpp4
1 files changed, 2 insertions, 2 deletions
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,