From 889ea19ddd5b4240375793d5030a04ed4642ec66 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 16:12:12 +0300 Subject: extract surface draw into surfacegraphics class. --- src/resources/atlasmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/atlasmanager.cpp') 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 -- cgit v1.2.3-60-g2f50