From 967e080376d33fdb31def695396875b61a0d2114 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 22 Sep 2005 04:32:08 +0000 Subject: [PATCH] fix bug with 16-bit png files --- panda/src/pnmimagetypes/pnmFileTypePNG.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pnmimagetypes/pnmFileTypePNG.cxx b/panda/src/pnmimagetypes/pnmFileTypePNG.cxx index 78c83ec09a..1ba6861937 100755 --- a/panda/src/pnmimagetypes/pnmFileTypePNG.cxx +++ b/panda/src/pnmimagetypes/pnmFileTypePNG.cxx @@ -734,7 +734,7 @@ write_data(xel *array, xelval *alpha_data) { pi++; } - } else if (png_bit_depth > 255) { + } else if (png_bit_depth > 8) { for (int xi = 0; xi < _x_size; xi++) { if (save_color) { xelval red = PPM_GETR(array[pi]);