From 5860a7322aa193f33d98bdfc0de983af85ef9229 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Fri, 23 Sep 2005 14:01:43 +0000 Subject: Reverted the latst change that broke the screenshots facility. --- src/resources/imagewriter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3-70-g09d2