diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 16:12:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | 889ea19ddd5b4240375793d5030a04ed4642ec66 (patch) | |
tree | d1694423834f8d4be86383ad28702845dfdadf2f /src/sdl2graphics.cpp | |
parent | b70bbf075a20524e6c1859fb18db0865c65182ca (diff) | |
download | mv-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.gz mv-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.bz2 mv-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.xz mv-889ea19ddd5b4240375793d5030a04ed4642ec66.zip |
extract surface draw into surfacegraphics class.
Diffstat (limited to 'src/sdl2graphics.cpp')
-rw-r--r-- | src/sdl2graphics.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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); */ } |