summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:04 +0300
commit950b1bc690ff36013e5e650572872ee7acd5e942 (patch)
tree3718081fb03d4e80fc657304b824a59fa5b411ec /src/render/sdlgraphics.h
parent1814650ad896a0f9684d279fa5843771e767748a (diff)
downloadmv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.gz
mv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.bz2
mv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.xz
mv-950b1bc690ff36013e5e650572872ee7acd5e942.zip
add final keyword to render files.
Diffstat (limited to 'src/render/sdlgraphics.h')
-rw-r--r--src/render/sdlgraphics.h67
1 files changed, 39 insertions, 28 deletions
diff --git a/src/render/sdlgraphics.h b/src/render/sdlgraphics.h
index 79c2c1c5a..17540543e 100644
--- a/src/render/sdlgraphics.h
+++ b/src/render/sdlgraphics.h
@@ -54,86 +54,97 @@ class SDLGraphics : public Graphics
*/
virtual ~SDLGraphics();
- void _beginDraw();
+ void _beginDraw() override final;
- void _endDraw();
+ void _endDraw() override final;
- bool pushClipArea(gcn::Rectangle rect);
+ bool pushClipArea(gcn::Rectangle rect) override final;
- void popClipArea();
+ void popClipArea() override final;
virtual 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 = false);
+ const bool useColor = false)
+ override final;
virtual void drawImagePattern(const Image *const image,
const int x, const int y,
- const int w, const int h);
+ const int w, const int h) override final;
virtual void drawRescaledImagePattern(const Image *const image,
const int x, const int y,
const int w, const int h,
const int scaledWidth,
- const int scaledHeight);
+ const int scaledHeight)
+ override final;
virtual void calcImagePattern(ImageVertexes *const vert,
const Image *const image,
- const int x, const int y,
- const int w, const int h) const;
+ const int x,
+ const int y,
+ const int w,
+ const int h) const override final;
virtual void calcImagePattern(ImageCollection *const vert,
const Image *const image,
- const int x, const int y,
- const int w, const int h) const;
+ const int x,
+ const int y,
+ const int w,
+ const int h) const override final;
virtual void calcTile(ImageVertexes *const vert,
- const Image *const image, int x, int y) const;
+ const Image *const image,
+ int x, int y) const override final;
virtual void calcTileSDL(ImageVertexes *const vert,
- int x, int y) const;
+ int x, int y) const override final;
virtual void calcTile(ImageCollection *const vertCol,
const Image *const image,
- int x, int y);
+ int x, int y) override final;
- virtual void drawTile(const ImageVertexes *const vert);
+ virtual void drawTile(const ImageVertexes *const vert) override final;
- virtual void drawTile(const ImageCollection *const vertCol);
+ virtual void drawTile(const ImageCollection *const vertCol)
+ override final;
- virtual void updateScreen();
+ virtual void updateScreen() override final;
- virtual SDL_Surface *getScreenshot() A_WARN_UNUSED;
+ virtual SDL_Surface *getScreenshot() override final A_WARN_UNUSED;
virtual bool drawNet(const int x1, const int y1,
const int x2, const int y2,
- const int width, const int height);
+ const int width, const int height) override final;
virtual bool calcWindow(ImageCollection *const vertCol,
const int x, const int y,
const int w, const int h,
- const ImageRect &imgRect);
+ const ImageRect &imgRect) override final;
- void fillRectangle(const gcn::Rectangle &rect) override;
+ void fillRectangle(const gcn::Rectangle &rect) override final;
- void drawRectangle(const gcn::Rectangle &rect) override;
+ void drawRectangle(const gcn::Rectangle &rect) override final;
- void drawPoint(int x, int y) override;
+ void drawPoint(int x, int y) override final;
- void drawLine(int x1, int y1, int x2, int y2) override;
+ void drawLine(int x1, int y1, int x2, int y2) override final;
- bool setVideoMode(const int w, const int h, const int bpp,
- const bool fs, const bool hwaccel,
- const bool resize, const bool noFrame);
+ bool setVideoMode(const int w, const int h,
+ const int bpp,
+ const bool fs,
+ const bool hwaccel,
+ const bool resize,
+ const bool noFrame) override final;
protected:
virtual bool drawImage2(const Image *const image,
int srcX, int srcY,
int dstX, int dstY,
const int width, const int height,
- const bool useColor);
+ const bool useColor) override final;
int SDL_FakeUpperBlit(const SDL_Surface *const src,
SDL_Rect *const srcrect,