summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 955b0fef5..44ff11783 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -504,11 +504,13 @@ void Graphics::drawImagePattern2(GraphicsVertexes *vert, Image *img)
// here not checking input parameters
std::vector<DoubleRect*> *arr = vert->getRectsSDL();
- std::vector<DoubleRect*>::const_iterator it;
- for (it = arr->begin(); it != arr->end(); ++it)
+ for (std::vector<DoubleRect*>::const_iterator it = arr->begin(),
+ it_end = arr->end(); it != it_end; ++it)
+ {
SDL_LowerBlit(img->mSDLSurface, &(*it)->src, mTarget, &(*it)->dst);
// SDL_BlitSurface(img->mSDLSurface, &(*it)->src, mTarget, &(*it)->dst);
+ }
}
bool Graphics::calcImageRect(GraphicsVertexes* vert,