From 09ec2b1ecc1a812e03878ccc07708a0aad02896a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Aug 2013 21:20:39 +0300 Subject: Split from Graphics SDL related code into SDLGraphics. --- src/resources/atlasmanager.cpp | 4 ++-- src/resources/image.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/resources') diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp index 0f7565ecd..1d7147d72 100644 --- a/src/resources/atlasmanager.cpp +++ b/src/resources/atlasmanager.cpp @@ -25,9 +25,9 @@ #include "resources/atlasmanager.h" #include "client.h" -#include "graphics.h" #include "graphicsmanager.h" #include "logger.h" +#include "sdlgraphics.h" #include "utils/mathutils.h" #include "utils/physfsrwops.h" @@ -227,7 +227,7 @@ SDL_Surface *AtlasManager::createSDLAtlas(TextureAtlas *const atlas) if (!surface) return nullptr; - Graphics *const graphics = new Graphics(); + SDLGraphics *const graphics = new SDLGraphics(); graphics->setTarget(surface); graphics->_beginDraw(); diff --git a/src/resources/image.h b/src/resources/image.h index 5ac239471..556109564 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -55,6 +55,7 @@ class Image : public Resource friend class Graphics; friend class ImageHelper; friend class OpenGLImageHelper; + friend class SDLGraphics; friend class SDLImageHelper; #ifdef USE_OPENGL friend class AtlasManager; -- cgit v1.2.3-60-g2f50