fix enums

This commit is contained in:
Randy 2020-06-09 20:04:03 +02:00
parent 0ff30f972d
commit 2457e6768a
1 changed files with 2 additions and 2 deletions

View File

@ -382,8 +382,8 @@ vips_foreign_load_png_header( VipsForeignLoad *load )
png->fmt = SPNG_FMT_GA8;
}
}
else if( png->ihdr.color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
png->ihdr.color_type == PNG_COLOR_TYPE_RGB_ALPHA ) {
else if( png->ihdr.color_type == SPNG_COLOR_TYPE_GRAYSCALE_ALPHA ||
png->ihdr.color_type == SPNG_COLOR_TYPE_TRUECOLOR_ALPHA ) {
/* Some images have their own alpha channel,
* not just a transparent color.
*/