From 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 22 Sep 2012 02:34:48 +0300 Subject: Add override keyword to most overriden methods. --- src/safeopenglgraphics.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/safeopenglgraphics.h') diff --git a/src/safeopenglgraphics.h b/src/safeopenglgraphics.h index 72a9485d7..efa9da832 100644 --- a/src/safeopenglgraphics.h +++ b/src/safeopenglgraphics.h @@ -45,7 +45,7 @@ class SafeOpenGLGraphics final : public Graphics bool setVideoMode(const int w, const int h, const int bpp, const bool fs, const bool hwaccel, - const bool resize, const bool noFrame); + const bool resize, const bool noFrame) override; /** * Draws a resclaled version of the image @@ -54,7 +54,7 @@ class SafeOpenGLGraphics final : public Graphics int dstX, int dstY, const int width, const int height, const int desiredWidth, const int desiredHeight, - const bool useColor); + const bool useColor) override; /** * Used to get the smooth rescale option over the standard function. @@ -67,7 +67,7 @@ class SafeOpenGLGraphics final : public Graphics 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; /** * Draw a pattern based on a rescaled version of the given image... @@ -76,7 +76,7 @@ class SafeOpenGLGraphics final : public Graphics const int x, const int y, const int w, const int h, const int scaledWidth, - const int scaledHeight); + const int scaledHeight) override; bool calcImageRect(GraphicsVertexes *const vert, const int x, const int y, @@ -89,21 +89,22 @@ class SafeOpenGLGraphics final : public Graphics const Image *const right, const Image *const bottom, const Image *const left, - const Image *const center); + const Image *const center) override; void drawImageRect2(GraphicsVertexes *const vert, - const ImageRect &imgRect); + const ImageRect &imgRect) override; - void calcTile(ImageVertexes *const vert, int x, int y); + void calcTile(ImageVertexes *const vert, int x, int y) override; - void drawTile(const ImageVertexes *const vert); + void drawTile(const ImageVertexes *const vert) override; - void updateScreen(); + void updateScreen() override; void _beginDraw(); void _endDraw(); bool pushClipArea(gcn::Rectangle area); + void popClipArea(); void setColor(const gcn::Color &color); @@ -116,16 +117,16 @@ class SafeOpenGLGraphics final : public Graphics void drawRectangle(const gcn::Rectangle &rect); - void fillRectangle(const gcn::Rectangle &rect); + void fillRectangle(const gcn::Rectangle &rect) override; void setTargetPlane(int width, int height); /** * Takes a screenshot and returns it as SDL surface. */ - SDL_Surface *getScreenshot(); + SDL_Surface *getScreenshot() override; - void prepareScreenshot(); + void prepareScreenshot() override; static void bindTexture(GLenum target, GLuint texture); -- cgit v1.2.3-60-g2f50