diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-01 15:14:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-01 23:42:37 +0300 |
commit | f9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch) | |
tree | d11408b35d0860709d31e6520578cdd28391f151 /src/render | |
parent | f52ca7838789a6910840597a929ecf6e0be9e1de (diff) | |
download | manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2 manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip |
Add missing const.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/graphics.cpp | 2 | ||||
-rw-r--r-- | src/render/graphics.h | 2 | ||||
-rw-r--r-- | src/render/graphicsdef.hpp | 2 | ||||
-rw-r--r-- | src/render/mobileopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/normalopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/nullopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/safeopenglgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/sdl2graphics.cpp | 2 | ||||
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/sdlgraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/surfacegraphics.h | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index 5437e6737..24c3ab69e 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -547,7 +547,7 @@ void Graphics::setWindowSize(const int width A_UNUSED, #endif } -bool Graphics::pushClipArea(Rect area) +bool Graphics::pushClipArea(const Rect &area) { // Ignore area with a negate width or height // by simple pushing an empty clip area diff --git a/src/render/graphics.h b/src/render/graphics.h index 541bb789d..ce612193c 100644 --- a/src/render/graphics.h +++ b/src/render/graphics.h @@ -419,7 +419,7 @@ class Graphics * @return False if the the new area lays outside the current clip * area. */ - virtual bool pushClipArea(Rect area); + virtual bool pushClipArea(const Rect &area); /** * Removes the top most clip area from the stack. diff --git a/src/render/graphicsdef.hpp b/src/render/graphicsdef.hpp index b11f88249..29cdc4a0f 100644 --- a/src/render/graphicsdef.hpp +++ b/src/render/graphicsdef.hpp @@ -37,7 +37,7 @@ public: void endDraw(); - bool pushClipArea(Rect area) override final; + bool pushClipArea(const Rect &area) override final; void popClipArea() override final; diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index 3db76a616..65b6b291a 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -961,7 +961,7 @@ SDL_Surface* MobileOpenGLGraphics::getScreenshot() return screenshot; } -bool MobileOpenGLGraphics::pushClipArea(Rect area) +bool MobileOpenGLGraphics::pushClipArea(const Rect &area) { int transX = 0; int transY = 0; diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index 8f3659936..bb8eed230 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -1223,7 +1223,7 @@ SDL_Surface* NormalOpenGLGraphics::getScreenshot() return screenshot; } -bool NormalOpenGLGraphics::pushClipArea(Rect area) +bool NormalOpenGLGraphics::pushClipArea(const Rect &area) { int transX = 0; int transY = 0; diff --git a/src/render/nullopenglgraphics.cpp b/src/render/nullopenglgraphics.cpp index 919b43c10..6497a7b5a 100644 --- a/src/render/nullopenglgraphics.cpp +++ b/src/render/nullopenglgraphics.cpp @@ -938,7 +938,7 @@ SDL_Surface* NullOpenGLGraphics::getScreenshot() return nullptr; } -bool NullOpenGLGraphics::pushClipArea(Rect area) +bool NullOpenGLGraphics::pushClipArea(const Rect &area) { int transX = 0; int transY = 0; diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp index 177cfecb5..d5c9981a3 100644 --- a/src/render/safeopenglgraphics.cpp +++ b/src/render/safeopenglgraphics.cpp @@ -529,7 +529,7 @@ SDL_Surface* SafeOpenGLGraphics::getScreenshot() return screenshot; } -bool SafeOpenGLGraphics::pushClipArea(Rect area) +bool SafeOpenGLGraphics::pushClipArea(const Rect &area) { int transX = 0; int transY = 0; diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 2b70a8ab0..25a689ddf 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -670,7 +670,7 @@ void SDLGraphics::endDraw() popClipArea(); } -bool SDLGraphics::pushClipArea(Rect area) +bool SDLGraphics::pushClipArea(const Rect &area) { const bool result = Graphics::pushClipArea(area); diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index a176b6905..e5943f7c7 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -1125,7 +1125,7 @@ void SDL2SoftwareGraphics::endDraw() popClipArea(); } -bool SDL2SoftwareGraphics::pushClipArea(Rect area) +bool SDL2SoftwareGraphics::pushClipArea(const Rect &area) { const bool result = Graphics::pushClipArea(area); diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index ac304b7ab..9b852689d 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -1122,7 +1122,7 @@ void SDLGraphics::endDraw() popClipArea(); } -bool SDLGraphics::pushClipArea(Rect area) +bool SDLGraphics::pushClipArea(const Rect &area) { const bool result = Graphics::pushClipArea(area); const ClipRect &carea = mClipStack.top(); diff --git a/src/render/surfacegraphics.h b/src/render/surfacegraphics.h index 44c2691ae..ab569acb0 100644 --- a/src/render/surfacegraphics.h +++ b/src/render/surfacegraphics.h @@ -63,7 +63,7 @@ class SurfaceGraphics final : public Graphics void endDraw() override final { } - bool pushClipArea(Rect rect A_UNUSED) override final + bool pushClipArea(const Rect &rect A_UNUSED) override final { return true; } void popClipArea() override final |