graphics_win32.c (navit-0.5.5) | : | graphics_win32.c (navit-0.5.6) | ||
---|---|---|---|---|
skipping to change at line 1317 | skipping to change at line 1317 | |||
NULL, NULL, NULL); | NULL, NULL, NULL); | |||
/* set-up the transformations */ | /* set-up the transformations */ | |||
/* transform paletted images into full-color rgb */ | /* transform paletted images into full-color rgb */ | |||
if (color_type == PNG_COLOR_TYPE_PALETTE) | if (color_type == PNG_COLOR_TYPE_PALETTE) | |||
png_set_palette_to_rgb(png_ptr); | png_set_palette_to_rgb(png_ptr); | |||
/* expand images to bit-depth 8 (only applicable for grayscale images) */ | /* expand images to bit-depth 8 (only applicable for grayscale images) */ | |||
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_A LPHA && bit_depth < 8) | if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_A LPHA && bit_depth < 8) | |||
png_set_gray_1_2_4_to_8(png_ptr); | png_set_expand_gray_1_2_4_to_8(png_ptr); | |||
/* Expand grayscale to rgb */ | /* Expand grayscale to rgb */ | |||
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_A LPHA) | if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_A LPHA) | |||
png_set_gray_to_rgb(png_ptr); | png_set_gray_to_rgb(png_ptr); | |||
/* expand colored images to bit-depth 8 */ | /* expand colored images to bit-depth 8 */ | |||
if (color_type == PNG_COLOR_TYPE_RGB && bit_depth < 8) | if (color_type == PNG_COLOR_TYPE_RGB && bit_depth < 8) | |||
png_set_packing(png_ptr); | png_set_packing(png_ptr); | |||
/* transform transparency maps into full alpha-channel */ | /* transform transparency maps into full alpha-channel */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |