X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2FSDL.xs;h=50e286a23a5c10a971d282336e6573808525b343;hb=19f3ee7bb3a37eb86e32da3ac9def56b729ef979;hp=13d20c68cb52d0c1ed26c2a937a5b31dc11b8625;hpb=9346cc6bf06dec0a3c4d215f20f67df880027b34;p=sdlgit%2FSDL_perl.git diff --git a/src/SDL.xs b/src/SDL.xs index 13d20c6..50e286a 100644 --- a/src/SDL.xs +++ b/src/SDL.xs @@ -1210,6 +1210,7 @@ ListModes ( format, flags ) } OUTPUT: RETVAL +=skip SDL_Palette * NewPalette ( number ) @@ -1221,6 +1222,7 @@ NewPalette ( number ) RETVAL->ncolors = number; OUTPUT: RETVAL +=cut int PaletteNColors ( palette, ... ) @@ -1322,22 +1324,6 @@ UpdateRects ( surface, ... ) Comment out for now as it does not compile -SDL_Color * -PaletteColors ( palette, index, ... ) - SDL_Palette *palette - int index - CODE: - if ( items > 2 ) { - palette->colors[index].r = SvUV(ST(2)); - palette->colors[index].g = SvUV(ST(3)); - palette->colors[index].b = SvUV(ST(4)); - } - RETVAL = (SDL_Color *)(palette->colors + index); - OUTPUT: - RETVAL - - - int VideoModeOK ( width, height, bpp, flags ) int width