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/sdl2graphics.cpp | |
parent | c456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff) | |
download | mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2 mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz mv-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip |
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r-- | src/render/sdl2graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index a8a4962d9..dc14125c8 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -90,10 +90,10 @@ #define MSDL_RenderCopy(render, texture, src, dst) \ FakeSDL_RenderCopy(render, texture, src, dst) -static int FakeSDL_RenderCopy(SDL_Renderer *const renderer, - SDL_Texture *const texture, - const SDL_Rect *const srcrect, - const SDL_Rect *const dstrect) +static int FakeSDL_RenderCopy(SDL_Renderer *restrict const renderer, + SDL_Texture *restrict const texture, + const SDL_Rect *restrict const srcrect, + const SDL_Rect *restrict const dstrect) { int ret = SDL_RenderCopy(renderer, texture, srcrect, dstrect); if (ret) @@ -780,7 +780,7 @@ void SDLGraphics::drawImageRect(const int x, const int y, void SDLGraphics::calcImageRect(ImageVertexes *restrict const vert, const int x, const int y, const int w, const int h, - const ImageRect &restrict imgRect) + const ImageRect &restrict imgRect) restrict2 { #include "render/graphics_calcImageRect.hpp" } |