From ab7cbe78ea676d5932881152631e6a6eafa530de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Jun 2014 23:14:53 +0300 Subject: Remove useless bool return value from renderers. --- src/render/graphics.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/render/graphics.h') diff --git a/src/render/graphics.h b/src/render/graphics.h index 5e536235f..e05f23a84 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -170,7 +170,7 @@ class Graphics notfinal /** * Draws a resclaled version of the image */ - virtual bool drawRescaledImage(const Image *const image, + virtual void drawRescaledImage(const Image *const image, int dstX, int dstY, const int desiredWidth, const int desiredHeight) = 0; @@ -255,7 +255,7 @@ class Graphics notfinal int getMemoryUsage() const A_WARN_UNUSED; - virtual bool drawNet(const int x1, const int y1, + virtual void drawNet(const int x1, const int y1, const int x2, const int y2, const int width, const int height); @@ -344,10 +344,10 @@ class Graphics notfinal * @return true if the image was blitted properly * false otherwise. */ - virtual bool drawImage(const Image *const image, + virtual void drawImage(const Image *const image, int dstX, int dstY) = 0; - virtual bool copyImage(const Image *const image, + virtual void copyImage(const Image *const image, int dstX, int dstY) = 0; virtual void drawImageCached(const Image *const image, @@ -377,10 +377,8 @@ class Graphics notfinal * zero width and height will be pushed. * * @param area The clip area to be pushed onto the stack. - * @return False if the the new area lays outside the current clip - * area. */ - virtual bool pushClipArea(const Rect &area); + virtual void pushClipArea(const Rect &area); /** * Removes the top most clip area from the stack. -- cgit v1.2.3-60-g2f50