diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-23 14:01:43 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-23 14:01:43 +0000 |
commit | 5860a7322aa193f33d98bdfc0de983af85ef9229 (patch) | |
tree | 03a860ed04903cac52cc939e7078ff98552a8c9d | |
parent | 40b485635ebae9e666143d7ab6577bf55cdda950 (diff) | |
download | mana-5860a7322aa193f33d98bdfc0de983af85ef9229.tar.gz mana-5860a7322aa193f33d98bdfc0de983af85ef9229.tar.bz2 mana-5860a7322aa193f33d98bdfc0de983af85ef9229.tar.xz mana-5860a7322aa193f33d98bdfc0de983af85ef9229.zip |
Reverted the latst change that broke the screenshots facility.
-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"); |