summaryrefslogtreecommitdiff
path: root/src/render/normalopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 14:17:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 14:17:37 +0300
commit31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8 (patch)
treeb7f2a06054bacc8208d8fb429fc811ed199b4453 /src/render/normalopenglgraphics.h
parent74f89c500d278b6ac668c313b63d0f1e76f4acaf (diff)
downloadplus-31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8.tar.gz
plus-31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8.tar.bz2
plus-31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8.tar.xz
plus-31fcdb31fb406531bec49ee2d1b3cc286ed3b5a8.zip
Improve drawRescaledImage in renderers.
Diffstat (limited to 'src/render/normalopenglgraphics.h')
-rw-r--r--src/render/normalopenglgraphics.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h
index 27e6120b4..13546b805 100644
--- a/src/render/normalopenglgraphics.h
+++ b/src/render/normalopenglgraphics.h
@@ -67,20 +67,10 @@ class NormalOpenGLGraphics 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,