- build also with libpng15 * libpng15.patch OBS-URL: https://build.opensuse.org/request/show/132092 OBS-URL: https://build.opensuse.org/package/show/games/khunphan?expand=0&rev=9
22 lines
553 B
Diff
22 lines
553 B
Diff
Index: khunphan-0.55/khunphan/btexture.cpp
|
|
===================================================================
|
|
--- khunphan-0.55.orig/khunphan/btexture.cpp
|
|
+++ khunphan-0.55/khunphan/btexture.cpp
|
|
@@ -24,6 +24,7 @@
|
|
#include <windows.h>
|
|
#endif
|
|
#include <png.h>
|
|
+#include <zlib.h>
|
|
#include "misc1.h"
|
|
#include "btexture.h"
|
|
|
|
@@ -447,7 +448,7 @@ bool BTexture::WriteTextureToPngFile (FI
|
|
return false;
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf)) {
|
|
+ if (png_jmpbuf(png_ptr)) {
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
return false;
|
|
}
|