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 /src/resources | |
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.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/imagewriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |