summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-25 01:53:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-25 01:53:38 +0300
commit953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d (patch)
treecdbcddc0713a61695d355aa65c93a0ae8477bd29 /src/render/sdl2graphics.cpp
parent22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7 (diff)
downloadplus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.gz
plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.bz2
plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.xz
plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.zip
Add restrict keyword in softwaregraphicsdef.hpp
Diffstat (limited to 'src/render/sdl2graphics.cpp')
-rw-r--r--src/render/sdl2graphics.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp
index 4910e15aa..a8a4962d9 100644
--- a/src/render/sdl2graphics.cpp
+++ b/src/render/sdl2graphics.cpp
@@ -506,7 +506,8 @@ void SDLGraphics::calcTileVertexesInline(ImageVertexes *restrict const vert,
calcTileSDL(vert, x, y);
}
-void SDLGraphics::calcTileSDL(ImageVertexes *const vert, int x, int y) const
+void SDLGraphics::calcTileSDL(ImageVertexes *restrict const vert,
+ int x, int y) const restrict2
{
// Check that preconditions for blitting are met.
if (!vert || !vert->image || !vert->image->mTexture)