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/compoundsprite.cpp | |
parent | b70bbf075a20524e6c1859fb18db0865c65182ca (diff) | |
download | plus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.gz plus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.bz2 plus-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.xz plus-889ea19ddd5b4240375793d5030a04ed4642ec66.zip |
extract surface draw into surfacegraphics class.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r-- | src/compoundsprite.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 24e8306c3..6e8d47373 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -30,8 +30,8 @@ #endif #include "map.h" -#include "sdlgraphics.h" #include "sdlshared.h" +#include "surfacegraphics.h" #include "resources/image.h" #include "resources/imagehelper.h" @@ -336,9 +336,9 @@ void CompoundSprite::redraw() const if (!surface) return; - SDLGraphics *graphics = new SDLGraphics(); - graphics->setBlitMode(SDLGraphics::BLIT_GFX); - graphics->setWindow(surface, BUFFER_WIDTH, BUFFER_HEIGHT); + SurfaceGraphics *graphics = new SurfaceGraphics(); + graphics->setBlitMode(SurfaceGraphics::BLIT_GFX); + graphics->setTarget(surface); graphics->_beginDraw(); int tileX = 32 / 2; |