summaryrefslogtreecommitdiff
path: root/src/resources/atlasmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/atlasmanager.cpp')
-rw-r--r--src/resources/atlasmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp
index 5f4897147..853f79743 100644
--- a/src/resources/atlasmanager.cpp
+++ b/src/resources/atlasmanager.cpp
@@ -27,7 +27,7 @@
#include "client.h"
#include "graphicsmanager.h"
#include "logger.h"
-#include "sdlgraphics.h"
+#include "surfacegraphics.h"
#include "utils/mathutils.h"
#include "utils/physfsrwops.h"
@@ -232,8 +232,8 @@ SDL_Surface *AtlasManager::createSDLAtlas(TextureAtlas *const atlas)
if (!surface)
return nullptr;
- SDLGraphics *const graphics = new SDLGraphics();
- graphics->setWindow(surface, width, height);
+ SurfaceGraphics *const graphics = new SurfaceGraphics();
+ graphics->setTarget(surface);
graphics->_beginDraw();
// drawing SDL images to surface