summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 17:55:40 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-12 21:53:47 +0200
commitfa7cdef831e160a275c4612a5bd4274a1fe095ea (patch)
treef49286e9e2c3428a67b2ac54593ba24fcad610af /src/graphics.cpp
parentdfb24aff4c683471fec95392a9d3a46687f40f28 (diff)
downloadmana-fa7cdef831e160a275c4612a5bd4274a1fe095ea.tar.gz
mana-fa7cdef831e160a275c4612a5bd4274a1fe095ea.tar.bz2
mana-fa7cdef831e160a275c4612a5bd4274a1fe095ea.tar.xz
mana-fa7cdef831e160a275c4612a5bd4274a1fe095ea.zip
Removed ImageLoader and ProxyImage classes
They allowed using gcn::Image, which in turns allows using gcn::Icon and gcn::ImageFont, but none of this is actually used anymore. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 7b56d974..ac3735f5 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -25,7 +25,6 @@
#include "log.h"
#include "resources/image.h"
-#include "resources/imageloader.h"
#include "utils/gettext.h"
@@ -219,15 +218,6 @@ bool Graphics::drawImage(Image *image, int srcX, int srcY, int dstX, int dstY,
return !(SDL_gfxBlitRGBA(image->mSDLSurface, &srcRect, mTarget, &dstRect) < 0);
}
-void Graphics::drawImage(gcn::Image const *image, int srcX, int srcY,
- int dstX, int dstY, int width, int height)
-{
- ProxyImage const *srcImage =
- dynamic_cast< ProxyImage const * >(image);
- assert(srcImage);
- drawImage(srcImage->getImage(), srcX, srcY, dstX, dstY, width, height, true);
-}
-
void Graphics::drawImagePattern(Image *image, int x, int y, int w, int h)
{
// Check that preconditions for blitting are met.