You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-fps/alephone/files/alephone-20100424-png15.patch

20 lines
697 B

--- Source_Files/RenderOther/IMG_savepng.c.old 2011-09-13 10:20:56.395157142 +0200
+++ Source_Files/RenderOther/IMG_savepng.c 2011-09-13 10:23:00.630142397 +0200
@@ -29,6 +29,7 @@
#include <SDL/SDL.h>
#include <SDL/SDL_byteorder.h>
#include <png.h>
+#include <zlib.h>
#include "IMG_savepng.h"
int IMG_SavePNG(const char *file, SDL_Surface *surf,int compression, struct IMG_PNG_text* text, int num_text){
@@ -85,7 +86,7 @@
goto savedone;
}
/* setup custom writer functions */
- png_set_write_fn(png_ptr,(voidp)src,png_write_data,NULL);
+ png_set_write_fn(png_ptr,(png_voidp)src,png_write_data,NULL);
if (setjmp(png_jmpbuf(png_ptr))){
SDL_SetError("Unknown error writing PNG");