Call SDL_MapRGBA in video_map_RGBA instead of SDL_MapRGB
Leon Brocard [Mon, 2 Nov 2009 15:42:47 +0000 (15:42 +0000)]
src/Core/Video.xs

index e7a9a0e..b6bce90 100644 (file)
@@ -262,7 +262,7 @@ video_map_RGBA ( pixel_format, r, g, b, a )
        Uint8 b 
        Uint8 a
        CODE:
-               RETVAL = SDL_MapRGB(pixel_format,r,g,b);
+               RETVAL = SDL_MapRGBA(pixel_format,r,g,b,a);
        OUTPUT:
                RETVAL