diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-31 17:55:40 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-31 17:56:17 +0200 |
commit | 6b607a737019ff1fb4c5106ff4baed30c3de45f6 (patch) | |
tree | 00e30b4c8adf712c7e516abe004c742f0ce420a5 /src/graphics.cpp | |
parent | c6380acb33a7414c2abe968a8bd056fae93dd10a (diff) | |
download | mana-6b607a737019ff1fb4c5106ff4baed30c3de45f6.tar.gz mana-6b607a737019ff1fb4c5106ff4baed30c3de45f6.tar.bz2 mana-6b607a737019ff1fb4c5106ff4baed30c3de45f6.tar.xz mana-6b607a737019ff1fb4c5106ff4baed30c3de45f6.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.
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 d36d2fa7..61cc78ba 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" @@ -226,15 +225,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. |