Lines 414-420
Link Here
|
414 |
|
414 |
|
415 |
png_read_info(pngPtr, infoPtr); |
415 |
png_read_info(pngPtr, infoPtr); |
416 |
|
416 |
|
417 |
if (infoPtr -> color_type == PNG_COLOR_TYPE_PALETTE) |
417 |
if (png_get_color_type(pngPtr, infoPtr) == PNG_COLOR_TYPE_PALETTE) |
418 |
{ |
418 |
{ |
419 |
png_set_expand(pngPtr); |
419 |
png_set_expand(pngPtr); |
420 |
} |
420 |
} |
Lines 565-571
Link Here
|
565 |
|
565 |
|
566 |
png_read_info( pngPtr, infoPtr ) ; |
566 |
png_read_info( pngPtr, infoPtr ) ; |
567 |
|
567 |
|
568 |
if (infoPtr -> color_type == PNG_COLOR_TYPE_PALETTE) |
568 |
if (png_get_color_type(pngPtr, infoPtr) == PNG_COLOR_TYPE_PALETTE) |
569 |
{ |
569 |
{ |
570 |
png_set_expand(pngPtr); |
570 |
png_set_expand(pngPtr); |
571 |
} |
571 |
} |
Lines 709-715
Link Here
|
709 |
png_read_info(pngPtr, infoPtr) ; |
709 |
png_read_info(pngPtr, infoPtr) ; |
710 |
|
710 |
|
711 |
|
711 |
|
712 |
if (infoPtr -> color_type == PNG_COLOR_TYPE_PALETTE) |
712 |
if (png_get_color_type(pngPtr, infoPtr) == PNG_COLOR_TYPE_PALETTE) |
713 |
{ |
713 |
{ |
714 |
png_set_expand(pngPtr); |
714 |
png_set_expand(pngPtr); |
715 |
} |
715 |
} |