Permalink
Browse files

Should never malloc SDL_Pallete

  • Loading branch information...
1 parent fca2734 commit 1be4c6f15e05abf39c06210ea17c682a6f4bae9b @kthakore kthakore committed Oct 26, 2009
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/SDL.xs
  2. +1 −1 typemap
View
@@ -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, ... )
View
@@ -21,7 +21,7 @@ SDL_CDtrack * T_PTR
SDL_TimerCallback T_PTR
SDL_Rect * O_OBJECT
SDL_Color * O_OBJECT
-SDL_Palette * T_PTR
+SDL_Palette * O_OBJECT
SDL_PixelFormat * O_OBJECT
SDL_VideoInfo * O_OBJECT
SDL_Cursor * T_PTR

0 comments on commit 1be4c6f

Please sign in to comment.