From 104df5cae8521f4a234381567b19e6b4da3ff1f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 20:25:38 +0300 Subject: Add restrict keyword to all renderers. --- src/render/sdl2graphics.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/render/sdl2graphics.cpp') 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" } -- cgit v1.2.3-60-g2f50