capture a PNG image. The problem was an incorrect destruction
call in imagecapture.cpp
Code: Select all
--- celestia-1.4.1/src/celestia/imagecapture.cpp~ 2004-11-16 00:14:20.000000000 -0700
+++ celestia-1.4.1/src/celestia/imagecapture.cpp 2006-02-19 19:58:03.000000000 -0700
@@ -195,7 +195,7 @@
png_write_end(png_ptr, info_ptr);
// Clean up everything . . .
- png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ png_destroy_write_struct(&png_ptr, &info_ptr);
delete[] row_pointers;
delete[] pixels;
fclose(out);
Now both the PNG and JPEG images saved are still corrupted however
they look the same