X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FCore%2FVideo.xs;h=a7a6b34d4d11a8467873463b7528c8069f464559;hb=eaf32d63cd5d036a165cbbcb1200bca441d2aa84;hp=0a4569d9678b3599635255f9c4d1e4b1a3ac877b;hpb=218b54717ada03b6fee9b1ef7e441795aa20331f;p=sdlgit%2FSDL_perl.git diff --git a/src/Core/Video.xs b/src/Core/Video.xs index 0a4569d..a7a6b34 100644 --- a/src/Core/Video.xs +++ b/src/Core/Video.xs @@ -87,4 +87,29 @@ video_video_mode_ok ( width, height, bpp, flags ) OUTPUT: RETVAL +void +video_update_rect ( surface, x, y, w ,h ) + SDL_Surface *surface + int x + int y + int w + int h + CODE: + SDL_UpdateRect(surface,x,y,w,h); + +void +video_update_rects ( surface, ... ) + SDL_Surface *surface + CODE: + SDL_Rect *rects; + int num_rects,i; + if ( items < 2 ) return; + num_rects = items - 1; + rects = (SDL_Rect *)safemalloc(sizeof(SDL_Rect)*items); + for(i=0;i