diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-31 17:55:40 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-08-12 21:53:47 +0200 |
commit | fa7cdef831e160a275c4612a5bd4274a1fe095ea (patch) | |
tree | f49286e9e2c3428a67b2ac54593ba24fcad610af /src/graphics.cpp | |
parent | dfb24aff4c683471fec95392a9d3a46687f40f28 (diff) | |
download | mana-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.cpp | 10 |
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. |