Blame 3Depict-0.0.12-png-gray.patch
|
D Haley |
c4c4131 |
diff -r src/pngread.c src/pngread.c
|
|
D Haley |
c4c4131 |
--- src/pngread.c
|
|
D Haley |
c4c4131 |
+++ src/pngread.c
|
|
D Haley |
c4c4131 |
@@ -132,11 +132,7 @@ int read_png(FILE *fp, unsigned int sig_read, png_bytep **row_pointers,
|
|
D Haley |
c4c4131 |
/* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
|
|
D Haley |
c4c4131 |
if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
|
|
D Haley |
c4c4131 |
{
|
|
D Haley |
c4c4131 |
-#if defined(__APPLE__) || defined(__WIN32) || defined(__WIN64)
|
|
D Haley |
c4c4131 |
png_set_expand_gray_1_2_4_to_8(png_ptr);
|
|
D Haley |
c4c4131 |
-#else
|
|
D Haley |
c4c4131 |
- png_set_gray_1_2_4_to_8(png_ptr);
|
|
D Haley |
c4c4131 |
-#endif
|
|
D Haley |
c4c4131 |
}
|
|
D Haley |
c4c4131 |
|
|
D Haley |
c4c4131 |
/* Expand paletted or RGB images with transparency to full alpha for RGBA */
|