Added SDL_Pallete Capability
Kartik Thakore [Mon, 26 Oct 2009 00:22:25 +0000 (20:22 -0400)]
Build.PL
src/SDL.xs

index c8b3f8a..96d6217 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -84,6 +84,14 @@ my %subsystems =
                },
                libraries => [qw( SDL )],
        },
+       Palette => {
+               file      => {
+                       from  => 'src/Core/objects/Palette.xs',
+                       to    => 'lib/SDL/Palette.xs',
+               },
+               libraries => [qw( SDL )],
+       },
+
        VideoInfo => {
                file      => {
                        from  => 'src/Core/objects/VideoInfo.xs',
index 13d20c6..aadfd96 100644 (file)
@@ -1322,22 +1322,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