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/sdlgraphics.cpp | |
parent | c456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff) | |
download | plus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz plus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2 plus-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz plus-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip |
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index 7743644f2..4fce63086 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -818,10 +818,10 @@ void SDLGraphics::calcWindow(ImageCollection *restrict const vertCol, calcImageRect(vert, x, y, w, h, imgRect); } -int SDLGraphics::SDL_FakeUpperBlit(const SDL_Surface *const src, - SDL_Rect *const srcrect, - const SDL_Surface *const dst, - SDL_Rect *dstrect) const +int SDLGraphics::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; @@ -903,7 +903,7 @@ void SDLGraphics::fillRectangle(const Rect &restrict rectangle) restrict2 if (mClipStack.empty()) return; - const ClipRect& top = mClipStack.top(); + const ClipRect &restrict top = mClipStack.top(); Rect area = rectangle; area.x += top.xOffset; @@ -1110,7 +1110,7 @@ void SDLGraphics::endDraw() restrict2 void SDLGraphics::pushClipArea(const Rect &restrict area) restrict2 { Graphics::pushClipArea(area); - const ClipRect &carea = mClipStack.top(); + const ClipRect &restrict carea = mClipStack.top(); const SDL_Rect rect = { static_cast<int16_t>(carea.x), @@ -1128,7 +1128,7 @@ void SDLGraphics::popClipArea() restrict2 if (mClipStack.empty()) return; - const ClipRect &carea = mClipStack.top(); + const ClipRect &restrict carea = mClipStack.top(); const SDL_Rect rect = { static_cast<int16_t>(carea.x), @@ -1159,7 +1159,7 @@ void SDLGraphics::drawPoint(int x, int y) restrict2 SDLputPixel(mWindow, x, y, mColor); } -void SDLGraphics::drawHLine(int x1, int y, int x2) +void SDLGraphics::drawHLine(int x1, int y, int x2) restrict2 { if (mClipStack.empty()) return; @@ -1286,12 +1286,12 @@ void SDLGraphics::drawHLine(int x1, int y, int x2) SDL_UnlockSurface(mWindow); } -void SDLGraphics::drawVLine(int x, int y1, int y2) +void SDLGraphics::drawVLine(int x, int y1, int y2) restrict2 { if (mClipStack.empty()) return; - const ClipRect& top = mClipStack.top(); + const ClipRect &restrict top = mClipStack.top(); const int yOffset = top.yOffset; x += top.xOffset; |