From 6d8828b47e291c0e85645adb60c8969a3f8facf4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 May 2012 23:08:18 +0300 Subject: Improve images drawing and remove some useless code. --- src/graphics.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/graphics.cpp') 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 @@ -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. -- cgit v1.2.3-60-g2f50