summaryrefslogtreecommitdiff
path: root/src/sdlgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r--src/sdlgraphics.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp
index a77076c26..f62bca7c8 100644
--- a/src/sdlgraphics.cpp
+++ b/src/sdlgraphics.cpp
@@ -47,7 +47,6 @@ static unsigned int *cB = nullptr;
SDLGraphics::SDLGraphics() :
Graphics(),
- mBlitMode(BLIT_NORMAL),
mOldPixel(0),
mOldAlpha(0)
{
@@ -126,16 +125,8 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY,
srcRect.w = static_cast<uint16_t>(width);
srcRect.h = static_cast<uint16_t>(height);
- if (mBlitMode == BLIT_NORMAL)
- {
- return !(SDL_BlitSurface(image->mSDLSurface, &srcRect,
- mWindow, &dstRect) < 0);
- }
- else
- {
- return !(SDL_gfxBlitRGBA(image->mSDLSurface, &srcRect,
- mWindow, &dstRect) < 0);
- }
+ return !(SDL_BlitSurface(image->mSDLSurface, &srcRect,
+ mWindow, &dstRect) < 0);
}
void SDLGraphics::drawImagePattern(const Image *const image,