summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
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;