summaryrefslogtreecommitdiff
path: root/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch
blob: dbdfc9f322755fc6246853851f3e11c1da54c459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/game/main.cpp
+++ b/game/main.cpp
@@ -28,6 +28,8 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
+#include <zlib.h>
+
 void migrateConfig( void)
 {
     //if onlineCheck is not set, default it to true
--- a/utilssdl/PNG.cpp
+++ b/utilssdl/PNG.cpp
@@ -45,7 +45,7 @@
 {
     png_size_t check;
 
-    check = fwrite( data, 1, length, (FILE *)(png->io_ptr));
+    check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png)));
     if( check != length)
     {
 	png_error( png, "Write Error");
@@ -72,7 +72,7 @@
 	return false;
     }
 
-    if( setjmp(_png->jmpbuf))
+    if( setjmp(png_jmpbuf(_png)))
     {
 	fclose( fp);
 	png_destroy_write_struct(&_png, (png_infopp)NULL);