From 889ea19ddd5b4240375793d5030a04ed4642ec66 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 16:12:12 +0300 Subject: extract surface draw into surfacegraphics class. --- src/sdlgraphics.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/sdlgraphics.cpp') 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(width); srcRect.h = static_cast(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, -- cgit v1.2.3-70-g09d2