summaryrefslogtreecommitdiff
path: root/src/sdl2graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 16:12:12 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commit889ea19ddd5b4240375793d5030a04ed4642ec66 (patch)
treed1694423834f8d4be86383ad28702845dfdadf2f /src/sdl2graphics.cpp
parentb70bbf075a20524e6c1859fb18db0865c65182ca (diff)
downloadplus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.gz
plus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.bz2
plus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.xz
plus-889ea19ddd5b4240375793d5030a04ed4642ec66.zip
extract surface draw into surfacegraphics class.
Diffstat (limited to 'src/sdl2graphics.cpp')
-rw-r--r--src/sdl2graphics.cpp13
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);
*/
}