ref: 5cf245c0027abb2478aaf1f90efcaecd80af3a9e
parent: 8e9b4eaf1d682a9bc0a3c8b816ca1d551c3cf374
author: Jonathan Dowland <jon+github@alcopop.org>
date: Wed Mar 1 07:30:07 EST 2017
Fix error message for PNG screenshots This lunchtime's small distraction... When there are no available filenames for writing out a screenshot, chocolate errored out with "V_ScreenShot: Couldn't create a PCX", even if PNG screenshots were enabled. Write out a correct message for the PNG case.
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -849,7 +849,16 @@
if (i == 100)
{
- I_Error ("V_ScreenShot: Couldn't create a PCX");
+#ifdef HAVE_LIBPNG
+ if (png_screenshots)
+ {
+ I_Error ("V_ScreenShot: Couldn't create a PNG");
+ }
+ else
+#endif
+ {
+ I_Error ("V_ScreenShot: Couldn't create a PCX");
+ }
}
#ifdef HAVE_LIBPNG