summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/atlasmanager.cpp6
-rw-r--r--src/resources/image.h1
2 files changed, 4 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
diff --git a/src/resources/image.h b/src/resources/image.h
index a0df54926..b31ecb29e 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -57,6 +57,7 @@ class Image : public Resource
friend class OpenGLImageHelper;
friend class SDLGraphics;
friend class SDLImageHelper;
+ friend class SurfaceGraphics;
friend class TestLauncher;
#ifdef USE_OPENGL
friend class AtlasManager;