diff options
author | root <root@rshg054.dnsready.net> | 2012-01-23 23:15:06 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-23 23:15:06 +0000 |
commit | c6c657b8bcf062b5d19eff6298b7754c11838080 (patch) | |
tree | ed6a14e27d40adfcc821fe921e95aa9e9ab4585b /community-staging/critter/criticalmass-1.0.2-libpng15.patch | |
parent | 164067832916c8e59219e1b0f30d7d04618a536e (diff) |
Mon Jan 23 23:15:06 UTC 2012
Diffstat (limited to 'community-staging/critter/criticalmass-1.0.2-libpng15.patch')
-rw-r--r-- | community-staging/critter/criticalmass-1.0.2-libpng15.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community-staging/critter/criticalmass-1.0.2-libpng15.patch b/community-staging/critter/criticalmass-1.0.2-libpng15.patch new file mode 100644 index 000000000..ac1b8c0c6 --- /dev/null +++ b/community-staging/critter/criticalmass-1.0.2-libpng15.patch @@ -0,0 +1,31 @@ +--- game/main.cpp ++++ 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 +--- utilssdl/PNG.cpp ++++ 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); |