diff options
Diffstat (limited to 'src/render/sdl2softwaregraphics.h')
-rw-r--r-- | src/render/sdl2softwaregraphics.h | 107 |
1 files changed, 50 insertions, 57 deletions
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h index 079e1425f..54a45d4fe 100644 --- a/src/render/sdl2softwaregraphics.h +++ b/src/render/sdl2softwaregraphics.h @@ -39,7 +39,7 @@ struct SDL_Surface; /** * A central point of control for graphics. */ -class SDL2SoftwareGraphics : public Graphics +class SDL2SoftwareGraphics final : public Graphics { public: /** @@ -52,7 +52,7 @@ class SDL2SoftwareGraphics : public Graphics /** * Destructor. */ - virtual ~SDL2SoftwareGraphics(); + ~SDL2SoftwareGraphics(); void _beginDraw(); @@ -62,69 +62,62 @@ class SDL2SoftwareGraphics : public Graphics void popClipArea(); - 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) - override final; + 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) override final; - virtual void drawImagePattern(const Image *const image, - const int x, const int y, - const int w, const int h) override final; + void drawImagePattern(const Image *const image, + const int x, const int y, + 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) - override final; + void drawRescaledImagePattern(const Image *const image, + const int x, const int y, + const int w, const int h, + const int scaledWidth, + 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 override final; + void calcImagePattern(ImageVertexes *const vert, + const Image *const image, + 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 override final; + void calcImagePattern(ImageCollection *const vert, + const Image *const image, + const int x, const int y, + const int w, const int h) const override final; - virtual void calcTileVertexes(ImageVertexes *const vert, - const Image *const image, - int x, int y) const override final; + void calcTileVertexes(ImageVertexes *const vert, + const Image *const image, + int x, int y) const override final; - virtual void calcTileSDL(ImageVertexes *const vert, - int x, int y) const override final; + void calcTileSDL(ImageVertexes *const vert, + int x, int y) const override final; - virtual void calcTileCollection(ImageCollection *const vertCol, - const Image *const image, - int x, int y) override final; + void calcTileCollection(ImageCollection *const vertCol, + const Image *const image, + int x, int y) override final; - virtual void drawTileVertexes(const ImageVertexes - *const vert) override final; + void drawTileVertexes(const ImageVertexes *const vert) override final; - virtual void drawTileCollection(const ImageCollection *const vertCol) - override final; + void drawTileCollection(const ImageCollection *const vertCol) + override final; - virtual void updateScreen() override final; + void updateScreen() override final; - virtual SDL_Surface *getScreenshot() override final A_WARN_UNUSED; + 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) override final; + bool drawNet(const int x1, const int y1, + const int x2, const int y2, + 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) override final; + bool calcWindow(ImageCollection *const vertCol, + const int x, const int y, + const int w, const int h, + const ImageRect &imgRect) override final; void fillRectangle(const gcn::Rectangle &rect) override final; @@ -146,11 +139,11 @@ class SDL2SoftwareGraphics : public Graphics bool resizeScreen(const int width, const int height) override final; - virtual bool drawImage2(const Image *const image, - int srcX, int srcY, - int dstX, int dstY, - const int width, const int height, - const bool useColor) override final; + bool drawImage2(const Image *const image, + int srcX, int srcY, + int dstX, int dstY, + const int width, const int height, + const bool useColor) override final; protected: int SDL_FakeUpperBlit(const SDL_Surface *const src, |