X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FCore%2Fobjects%2FSurface.xs;h=993a3eb52b69cb2a2e1c50699ed44fa7f2ec5904;hb=34a219f78b8882f5cee508265a87b4dfec27eb26;hp=b35484a92d96d22c0ac8d042fe1acbe82aabda1e;hpb=348b98f1b3ee5169930084613f270bb491c3e139;p=sdlgit%2FSDL_perl.git diff --git a/src/Core/objects/Surface.xs b/src/Core/objects/Surface.xs index b35484a..993a3eb 100644 --- a/src/Core/objects/Surface.xs +++ b/src/Core/objects/Surface.xs @@ -45,17 +45,15 @@ surface_new (CLASS, flags, width, height, depth, Rmask, Gmask, Bmask, Amask ) OUTPUT: RETVAL -int -surface_fill_rect ( dest, dest_rect, color ) - SDL_Surface *dest - SDL_Color *color - SDL_Rect *dest_rect +SDL_PixelFormat * +surface_format ( surface ) + SDL_Surface *surface CODE: - Uint32 pixel = SDL_MapRGB(dest->format,color->r,color->g,color->b); - RETVAL = SDL_FillRect(dest,dest_rect,pixel); + char* CLASS = "SDL::PixelFormat"; + RETVAL = surface->format; OUTPUT: RETVAL - + void surface_update_rect ( surface, x, y, w ,h ) SDL_Surface *surface