summaryrefslogtreecommitdiff
path: root/src/compoundsprite.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/compoundsprite.cpp
parentb70bbf075a20524e6c1859fb18db0865c65182ca (diff)
downloadManaVerse-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.gz
ManaVerse-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.bz2
ManaVerse-889ea19ddd5b4240375793d5030a04ed4642ec66.tar.xz
ManaVerse-889ea19ddd5b4240375793d5030a04ed4642ec66.zip
extract surface draw into surfacegraphics class.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp8
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;