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/sdl2graphics.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/sdl2graphics.cpp') diff --git a/src/sdl2graphics.cpp b/src/sdl2graphics.cpp index 71a3ebbae..bdd06d3cf 100644 --- a/src/sdl2graphics.cpp +++ b/src/sdl2graphics.cpp @@ -49,7 +49,6 @@ static unsigned int *cB = nullptr; SDLGraphics::SDLGraphics() : Graphics(), - mBlitMode(BLIT_NORMAL), mOldPixel(0), mOldAlpha(0) { @@ -131,16 +130,8 @@ bool SDLGraphics::drawImage2(const Image *const image, int srcX, int srcY, return true; /* - 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); */ } -- cgit v1.2.3-70-g09d2