summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 20:25:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 20:25:38 +0300
commit104df5cae8521f4a234381567b19e6b4da3ff1f0 (patch)
tree2789b318f3f2d977bdd01921ae69c4f476954476 /src/render/sdlgraphics.h
parentc456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff)
downloadmanaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz
manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2
manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz
manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/sdlgraphics.h')
-rw-r--r--src/render/sdlgraphics.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/sdlgraphics.h b/src/render/sdlgraphics.h
index 4e8e4d41e..2fa0258de 100644
--- a/src/render/sdlgraphics.h
+++ b/src/render/sdlgraphics.h
@@ -59,14 +59,14 @@ class SDLGraphics final : public Graphics
#include "render/softwaregraphicsdef.hpp"
protected:
- int SDL_FakeUpperBlit(const SDL_Surface *const src,
- SDL_Rect *const srcrect,
- const SDL_Surface *const dst,
- SDL_Rect *dstrect) const;
+ int SDL_FakeUpperBlit(const SDL_Surface *restrict const src,
+ SDL_Rect *restrict const srcrect,
+ const SDL_Surface *restrict const dst,
+ SDL_Rect *restrict dstrect) const restrict2;
- void drawHLine(int x1, int y, int x2);
+ void drawHLine(int x1, int y, int x2) restrict2;
- void drawVLine(int x, int y1, int y2);
+ void drawVLine(int x, int y1, int y2) restrict2;
uint32_t mOldPixel;
unsigned int mOldAlpha;