From cde5d37eb27667c5d4fbd35fd0a2be9b523d68d9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 24 Aug 2020 18:17:47 +0200 Subject: [PATCH] Put this behind RPNG_TEST --- libretro-common/formats/png/rpng.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretro-common/formats/png/rpng.c b/libretro-common/formats/png/rpng.c index d32e7723e7..3d8ced1c13 100644 --- a/libretro-common/formats/png/rpng.c +++ b/libretro-common/formats/png/rpng.c @@ -179,12 +179,14 @@ static bool png_process_ihdr(struct png_ihdr *ihdr) return false; } +#ifdef RPNG_TEST fprintf(stderr, "IHDR: (%u x %u), bpc = %u, palette = %s, color = %s, alpha = %s, adam7 = %s.\n", ihdr->width, ihdr->height, ihdr_depth, (ihdr->color_type == PNG_IHDR_COLOR_PLT) ? "yes" : "no", (ihdr->color_type & PNG_IHDR_COLOR_RGB) ? "yes" : "no", (ihdr->color_type & PNG_IHDR_COLOR_GRAY_ALPHA) ? "yes" : "no", ihdr->interlace == 1 ? "yes" : "no"); +#endif return true; }