diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-05 23:08:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-05 23:08:18 +0300 |
commit | 6d8828b47e291c0e85645adb60c8969a3f8facf4 (patch) | |
tree | 511891a798232bf886c93b9f5395fb7cbb933bbf /src/graphics.cpp | |
parent | 38f2d53aa706e8931c740b0d2ecd15f693b8922c (diff) | |
download | manaverse-6d8828b47e291c0e85645adb60c8969a3f8facf4.tar.gz manaverse-6d8828b47e291c0e85645adb60c8969a3f8facf4.tar.bz2 manaverse-6d8828b47e291c0e85645adb60c8969a3f8facf4.tar.xz manaverse-6d8828b47e291c0e85645adb60c8969a3f8facf4.zip |
Improve images drawing and remove some useless code.
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r-- | src/graphics.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp index 677172420..f72e495c6 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -30,8 +30,6 @@ #include "logger.h" #include "resources/image.h" -#include "resources/imageloader.h" - #include "utils/stringutils.h" #include <guichan/sdl/sdlpixel.hpp> @@ -358,7 +356,7 @@ bool Graphics::drawImage(Image *image, int x, int y) if (image) { return drawImage(image, 0, 0, x, y, - image->mBounds.w, image->mBounds.h); + image->mBounds.w, image->mBounds.h, false); } else { @@ -444,17 +442,6 @@ bool Graphics::drawImage(Image *image, int srcX, int srcY, int dstX, int dstY, } } -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); - if (!srcImage) - return; - 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. |