summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.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/sdl2softwaregraphics.h
parent1814650ad896a0f9684d279fa5843771e767748a (diff)
downloadplus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.gz
plus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.bz2
plus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.xz
plus-950b1bc690ff36013e5e650572872ee7acd5e942.zip
add final keyword to render files.
Diffstat (limited to 'src/render/sdl2softwaregraphics.h')
-rw-r--r--src/render/sdl2softwaregraphics.h70
1 files changed, 41 insertions, 29 deletions
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h
index 19bf49373..eb97cf4de 100644
--- a/src/render/sdl2softwaregraphics.h
+++ b/src/render/sdl2softwaregraphics.h
@@ -62,88 +62,100 @@ class SDL2SoftwareGraphics : public Graphics
void popClipArea();
- virtual bool drawRescaledImage(const Image *const image, int srcX,
- int srcY, int dstX, int dstY,
+ 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 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;
- void setRendererFlags(const uint32_t flags)
+ void setRendererFlags(const uint32_t flags) override final
{ mRendererFlags = flags; }
- bool resizeScreen(const int width, const int height);
+ bool resizeScreen(const int width, const int height) 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,
const SDL_Surface *const dst,
- SDL_Rect *dstrect) const;
+ SDL_Rect *dstrect) const override final;
void drawHLine(int x1, int y, int x2);