diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-25 20:25:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-25 20:25:38 +0300 |
commit | 104df5cae8521f4a234381567b19e6b4da3ff1f0 (patch) | |
tree | 2789b318f3f2d977bdd01921ae69c4f476954476 /src/render/sdl2softwaregraphics.h | |
parent | c456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff) | |
download | manaplus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz manaplus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2 manaplus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz manaplus-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip |
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/sdl2softwaregraphics.h')
-rw-r--r-- | src/render/sdl2softwaregraphics.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h index 633a7a6e4..1bef95575 100644 --- a/src/render/sdl2softwaregraphics.h +++ b/src/render/sdl2softwaregraphics.h @@ -56,7 +56,7 @@ class SDL2SoftwareGraphics final : public Graphics */ ~SDL2SoftwareGraphics(); - void setRendererFlags(const uint32_t flags) override final + void setRendererFlags(const uint32_t flags) restrict2 override final { mRendererFlags = flags; } #include "render/graphicsdef.hpp" @@ -67,14 +67,14 @@ class SDL2SoftwareGraphics final : public Graphics const int height) restrict2 override final; 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 mRendererFlags; SDL_Surface *mSurface; |