From 31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 14:17:37 +0300 Subject: Improve drawRescaledImage in renderers. --- src/render/safeopenglgraphics.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/render/safeopenglgraphics.h') diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index 2fdc3b3f2..0803e9948 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -60,20 +60,10 @@ class SafeOpenGLGraphics final : public Graphics /** * Draws a resclaled version of the image */ - bool drawRescaledImage(const Image *const image, int srcX, int srcY, + bool drawRescaledImage(const Image *const image, int dstX, int dstY, - const int width, const int height, - const int desiredWidth, const int desiredHeight, - const bool useColor) override final; - - /** - * Used to get the smooth rescale option over the standard function. - */ - bool drawRescaledImage(const Image *const image, int srcX, int srcY, - int dstX, int dstY, - const int width, const int height, - const int desiredWidth, const int desiredHeight, - const bool useColor, bool smooth); + const int desiredWidth, + const int desiredHeight) override final; void drawPattern(const Image *const image, const int x, const int y, -- cgit v1.2.3-60-g2f50