summaryrefslogtreecommitdiff
path: root/src/resources/sdl2imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-18 00:54:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-18 00:54:11 +0300
commit464afe0bfe3157fa931d492055a3c001bf50312e (patch)
tree5c2a5cd06211a0624de986db3c4fc54f703d0eef /src/resources/sdl2imagehelper.cpp
parentded3b455e53af47b190abb6050a2a8ba520855c3 (diff)
downloadmv-464afe0bfe3157fa931d492055a3c001bf50312e.tar.gz
mv-464afe0bfe3157fa931d492055a3c001bf50312e.tar.bz2
mv-464afe0bfe3157fa931d492055a3c001bf50312e.tar.xz
mv-464afe0bfe3157fa931d492055a3c001bf50312e.zip
add restrict into sdl2imagehelper.
Diffstat (limited to 'src/resources/sdl2imagehelper.cpp')
-rw-r--r--src/resources/sdl2imagehelper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp
index c3481a1b5..0ea97c5f4 100644
--- a/src/resources/sdl2imagehelper.cpp
+++ b/src/resources/sdl2imagehelper.cpp
@@ -163,10 +163,10 @@ SDL_Surface *SDLImageHelper::create32BitSurface(int width, int height) const
width, height, 32, rmask, gmask, bmask, amask);
}
-int SDLImageHelper::combineSurface(SDL_Surface *const src,
- SDL_Rect *const srcrect,
- SDL_Surface *const dst,
- SDL_Rect *const dstrect)
+int SDLImageHelper::combineSurface(SDL_Surface *restrict const src,
+ SDL_Rect *restrict const srcrect,
+ SDL_Surface *restrict const dst,
+ SDL_Rect *restrict const dstrect)
{
SDL_SetSurfaceBlendMode(src, SDL_BLENDMODE_BLEND);
SDL_BlitSurface(src, srcrect, dst, dstrect);