From: Kartik Thakore Date: Sun, 27 Sep 2009 13:59:33 +0000 (-0400) Subject: apparently the macros are messed up X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=260ff6cfda9e639a87d3baa45b56d760bb485a1a;p=sdlgit%2FSDL_perl.git apparently the macros are messed up --- diff --git a/src/SDL.xs b/src/SDL.xs index 09c2dbd..135f1ca 100644 --- a/src/SDL.xs +++ b/src/SDL.xs @@ -1557,8 +1557,11 @@ ConvertRGBA ( surface ) int BlitSurface ( src, src_rect, dest, dest_rect ) SDL_Surface *src - SDL_Rect *src_rect + SDL_Surface *dest + + SDL_Rect *src_rect + SDL_Rect *dest_rect CODE: RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect); @@ -1568,8 +1571,11 @@ BlitSurface ( src, src_rect, dest, dest_rect ) int FillRect ( dest, dest_rect, color ) SDL_Surface *dest - SDL_Rect *dest_rect + SDL_Color *color + + SDL_Rect *dest_rect + CODE: Uint32 pixel = SDL_MapRGB(dest->format,color->r,color->g,color->b); RETVAL = SDL_FillRect(dest,dest_rect,pixel);