diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/resources/imagewriter.cpp | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2005-09-23 Eugenio Favalli <elvenprogrammer@gmail.com> + * src/resources/imagewriter.cpp: Reverted the latst change that broke + the screenshots facility. + 2005-19-22 Duane Bailey <nayryeliab@gmail.com> * src/net/win2mac.h, src/net/win2mac.cpp: removed diff --git a/src/resources/imagewriter.cpp b/src/resources/imagewriter.cpp index 93f834f2..f4be3a66 100644 --- a/src/resources/imagewriter.cpp +++ b/src/resources/imagewriter.cpp @@ -55,7 +55,9 @@ bool ImageWriter::writePNG(SDL_Surface *surface, logger->log("Had trouble creating png_structp"); return false; } - + + info_ptr = png_create_info_struct(png_ptr); + if (!info_ptr) { png_destroy_write_struct(&png_ptr, (png_infopp)NULL); logger->log("Could not create png_info"); |