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/sdl2softwaregraphics.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/render/sdl2softwaregraphics.cpp') diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index 4b8c9a469..5e7434e80 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -830,10 +830,13 @@ void SDL2SoftwareGraphics::calcWindow(ImageCollection *restrict const vertCol, calcImageRect(vert, x, y, w, h, imgRect); } -int SDL2SoftwareGraphics::SDL_FakeUpperBlit(const SDL_Surface *const src, - SDL_Rect *const srcrect, - const SDL_Surface *const dst, - SDL_Rect *dstrect) const +int SDL2SoftwareGraphics::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 { int srcx, srcy, w, h; @@ -1154,7 +1157,7 @@ void SDL2SoftwareGraphics::drawPoint(int x, int y) restrict2 SDLputPixel(mSurface, x, y, mColor); } -void SDL2SoftwareGraphics::drawHLine(int x1, int y, int x2) +void SDL2SoftwareGraphics::drawHLine(int x1, int y, int x2) restrict2 { if (mClipStack.empty()) return; -- cgit v1.2.3-70-g09d2