diff options
-rw-r--r-- | src/graphics.cpp | 4 | ||||
-rw-r--r-- | src/resources/image.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index e79cbf56b..61f98b2a7 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -559,7 +559,7 @@ void Graphics::calcImagePattern(GraphicsVertexes* vert, srcRect.w = static_cast<Uint16>(dw); srcRect.h = static_cast<Uint16>(dh); - if (sdl_FakeUpperBlit(image->mSDLSurface, &srcRect, + if (SDL_FakeUpperBlit(image->mSDLSurface, &srcRect, mTarget, &dstRect) == 1) { vert->pushSDL(srcRect, dstRect); @@ -588,7 +588,7 @@ void Graphics::calcTile(ImageVertexes *vert, int x, int y) rect->src.y = static_cast<short>(image->mBounds.y); rect->src.w = static_cast<Uint16>(image->mBounds.w); rect->src.h = static_cast<Uint16>(image->mBounds.h); - if (sdl_FakeUpperBlit(image->mSDLSurface, &rect->src, + if (SDL_FakeUpperBlit(image->mSDLSurface, &rect->src, mTarget, &rect->dst) == 1) { vert->sdl.push_back(rect); diff --git a/src/resources/image.h b/src/resources/image.h index eb211341c..9ac2b163e 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -162,7 +162,7 @@ class Image : public Resource * * @return A new Image* object. */ - Image* SDLGetScaledImage(int width, int height); + Image* SDLgetScaledImage(int width, int height); /** * Merges two image SDL_Surfaces together. This is for SDL use only, as |