summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-23 14:01:43 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-23 14:01:43 +0000
commit5860a7322aa193f33d98bdfc0de983af85ef9229 (patch)
tree03a860ed04903cac52cc939e7078ff98552a8c9d
parent40b485635ebae9e666143d7ab6577bf55cdda950 (diff)
downloadmana-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--ChangeLog4
-rw-r--r--src/resources/imagewriter.cpp4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5962ade7..4f0136ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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");