summaryrefslogtreecommitdiff
blob: da99a84541024431ee4004abb1928b2edcbe6b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- 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");