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.cpp | |
parent | c456cb3f7eea27839c4b2689d77ddc09926fb8c6 (diff) | |
download | manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.gz manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.bz2 manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.tar.xz manaverse-104df5cae8521f4a234381567b19e6b4da3ff1f0.zip |
Add restrict keyword to all renderers.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
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; |