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/imagegraphics.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/render/imagegraphics.h') diff --git a/src/render/imagegraphics.h b/src/render/imagegraphics.h index 5d55fb2bb..2f15a9e51 100644 --- a/src/render/imagegraphics.h +++ b/src/render/imagegraphics.h @@ -59,18 +59,18 @@ class ImegeGraphics final : public Graphics void endDraw() override final { } - bool pushClipArea(const Rect &rect A_UNUSED) override final - { return true; } + void pushClipArea(const Rect &rect A_UNUSED) override final + { } void popClipArea() override final { } - bool drawRescaledImage(const Image *const image A_UNUSED, + void drawRescaledImage(const Image *const image A_UNUSED, int dstX A_UNUSED, int dstY A_UNUSED, const int desiredWidth A_UNUSED, const int desiredHeight A_UNUSED) override final - { return false; } + { } void drawPattern(const Image *const image A_UNUSED, const int x A_UNUSED, @@ -134,13 +134,13 @@ class ImegeGraphics final : public Graphics SDL_Surface *getScreenshot() override final A_WARN_UNUSED { return nullptr; } - bool drawNet(const int x1 A_UNUSED, + void drawNet(const int x1 A_UNUSED, const int y1 A_UNUSED, const int x2 A_UNUSED, const int y2 A_UNUSED, const int width A_UNUSED, const int height A_UNUSED) override final - { return false; } + { } void calcWindow(ImageCollection *const vertCol A_UNUSED, const int x A_UNUSED, const int y A_UNUSED, @@ -169,10 +169,10 @@ class ImegeGraphics final : public Graphics const bool noFrame A_UNUSED) override final { return false; } - bool drawImage(const Image *const image, + void drawImage(const Image *const image, int dstX, int dstY) override final; - bool copyImage(const Image *const image, + void copyImage(const Image *const image, int dstX, int dstY) override final; void drawImageCached(const Image *const image, -- cgit v1.2.3-70-g09d2