summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/surfaceimagehelper.cpp8
-rw-r--r--src/resources/surfaceimagehelper.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/resources/surfaceimagehelper.cpp b/src/resources/surfaceimagehelper.cpp
index 22aa904f5..aaecc2b71 100644
--- a/src/resources/surfaceimagehelper.cpp
+++ b/src/resources/surfaceimagehelper.cpp
@@ -167,10 +167,10 @@ SDL_Surface *SurfaceImageHelper::create32BitSurface(int width,
width, height, 32, rmask, gmask, bmask, amask);
}
-int SurfaceImageHelper::combineSurface(SDL_Surface *const src,
- SDL_Rect *const srcrect,
- SDL_Surface *const dst,
- SDL_Rect *const dstrect)
+int SurfaceImageHelper::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);
diff --git a/src/resources/surfaceimagehelper.h b/src/resources/surfaceimagehelper.h
index 75a39c617..39efa1d4d 100644
--- a/src/resources/surfaceimagehelper.h
+++ b/src/resources/surfaceimagehelper.h
@@ -94,10 +94,10 @@ class SurfaceImageHelper final : public ImageHelper
SDL_Surface *create32BitSurface(int width,
int height) const override final;
- static int combineSurface(SDL_Surface *const src,
- SDL_Rect *const srcrect,
- SDL_Surface *const dst,
- SDL_Rect *const dstrect);
+ static int combineSurface(SDL_Surface *restrict const src,
+ SDL_Rect *restrict const srcrect,
+ SDL_Surface *restrict const dst,
+ SDL_Rect *restrict const dstrect);
protected:
/** SDL_Surface to SDL_Surface Image loader */