From c042350256ddfb7a4ac276a0bc98c3d2673708de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:55:43 +0300 Subject: add restrict into sdl2softwareimagehelper. --- src/resources/sdl2softwareimagehelper.cpp | 8 ++++---- src/resources/sdl2softwareimagehelper.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/resources') diff --git a/src/resources/sdl2softwareimagehelper.cpp b/src/resources/sdl2softwareimagehelper.cpp index 2886c3ff6..a8ca5cd89 100644 --- a/src/resources/sdl2softwareimagehelper.cpp +++ b/src/resources/sdl2softwareimagehelper.cpp @@ -159,10 +159,10 @@ SDL_Surface *SDL2SoftwareImageHelper::create32BitSurface(int width, width, height, 32, rmask, gmask, bmask, amask); } -int SDL2SoftwareImageHelper::combineSurface(SDL_Surface *const src, - SDL_Rect *const srcrect, - SDL_Surface *const dst, - SDL_Rect *const dstrect) +int SDL2SoftwareImageHelper::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/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h index 906e9a9b0..a63f45933 100644 --- a/src/resources/sdl2softwareimagehelper.h +++ b/src/resources/sdl2softwareimagehelper.h @@ -86,10 +86,10 @@ class SDL2SoftwareImageHelper 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); static void setFormat(SDL_PixelFormat *const format) { -- cgit v1.2.3-70-g09d2