diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2024-05-25 10:25:51 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2024-05-25 10:25:51 +0930 |
commit | b3656ed5962d944c6921209fa238f5e62c6e364c (patch) | |
tree | d4290acfc6b505f08749cd77fbc2fe2abde7da45 /src | |
parent | bc4dfe51d2a01285b883b5672df34113bfb923c5 (diff) |
Update required libpng version
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-png.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c index 63e3c4cdb..287f70545 100644 --- a/src/cairo-png.c +++ b/src/cairo-png.c @@ -730,13 +730,8 @@ read_png (struct png_read_closure_t *png_closure) png_set_palette_to_rgb (png); /* expand gray bit depth if needed */ - if (color_type == PNG_COLOR_TYPE_GRAY) { -#if PNG_LIBPNG_VER >= 10209 + if (color_type == PNG_COLOR_TYPE_GRAY) png_set_expand_gray_1_2_4_to_8 (png); -#else - png_set_gray_1_2_4_to_8 (png); -#endif - } /* transform transparency to alpha */ if (png_get_valid (png, info, PNG_INFO_tRNS)) |