diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-29 23:14:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-29 23:39:00 +0300 |
commit | ab7cbe78ea676d5932881152631e6a6eafa530de (patch) | |
tree | 47610db47cbaeb0a8e275f7dc35524b1e87b756c /src/render/graphics.h | |
parent | d02762b6dc35e1564e5d1cc7458458f824f251f9 (diff) | |
download | ManaVerse-ab7cbe78ea676d5932881152631e6a6eafa530de.tar.gz ManaVerse-ab7cbe78ea676d5932881152631e6a6eafa530de.tar.bz2 ManaVerse-ab7cbe78ea676d5932881152631e6a6eafa530de.tar.xz ManaVerse-ab7cbe78ea676d5932881152631e6a6eafa530de.zip |
Remove useless bool return value from renderers.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r-- | src/render/graphics.h | 12 |
1 files changed, 5 insertions, 7 deletions
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 <code>true</code> if the image was blitted properly * <code>false</code> 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. |