From a8f9e4d033e02cfa11fd07e4c089bf9d84ea5819 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Sat, 13 Jun 2009 23:25:15 +0000 Subject: [PATCH] Fix prototype for blitWithRotate1. --- client/SDL_Extensions.cpp | 2 +- client/SDL_Extensions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/SDL_Extensions.cpp b/client/SDL_Extensions.cpp index 0aa0a9797..4ec2384bd 100644 --- a/client/SDL_Extensions.cpp +++ b/client/SDL_Extensions.cpp @@ -454,7 +454,7 @@ static void prepareOutRect(SDL_Rect &dst, const SDL_Rect *dstRect, const SDL_Rec dst.h = std::max(0,std::min(dstRect->h - (dst.y - dstRect->y), clip_rect->y + clip_rect->h - dst.y)); } -void CSDL_Ext::blitWithRotate1(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, SDL_Rect * dstRect)//srcRect is not used, works with 8bpp sources and 24/32 bpp dests +void CSDL_Ext::blitWithRotate1(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, const SDL_Rect * dstRect)//srcRect is not used, works with 8bpp sources and 24/32 bpp dests { Uint8 *sp = (Uint8 *)src->pixels; const int bpp = dst->format->BytesPerPixel; diff --git a/client/SDL_Extensions.h b/client/SDL_Extensions.h index 3c134cd49..7828ac1de 100644 --- a/client/SDL_Extensions.h +++ b/client/SDL_Extensions.h @@ -60,7 +60,7 @@ namespace CSDL_Ext Uint32 SDL_GetPixel(SDL_Surface *surface, const int & x, const int & y, bool colorByte = false); SDL_Color SDL_GetPixelColor(SDL_Surface *surface, int x, int y); //returns color of pixel at given position void alphaTransform(SDL_Surface * src); //adds transparency and shadows (partial handling only; see examples of using for details) - void blitWithRotate1(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, SDL_Rect * dstRect);//srcRect is not used, works with 8bpp sources and 24bpp dests + void blitWithRotate1(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, const SDL_Rect * dstRect);//srcRect is not used, works with 8bpp sources and 24bpp dests void blitWithRotate2(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, const SDL_Rect * dstRect);//srcRect is not used, works with 8bpp sources and 24bpp dests void blitWithRotate3(const SDL_Surface *src, const SDL_Rect * srcRect, SDL_Surface * dst, const SDL_Rect * dstRect);//srcRect is not used, works with 8bpp sources and 24bpp dests void blitWithRotate1clip(SDL_Surface *src,SDL_Rect * srcRect, SDL_Surface * dst, SDL_Rect * dstRect);//srcRect is not used, works with 8bpp sources and 24bpp dests preserving clip_rect