Skip to content

Commit f0a443e

Browse files
author
roudoudou
committed
palette fix
1 parent e085afa commit f0a443e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libgfx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ struct s_png_info * _internal_PNGRead(char *filename, int want8, int wantALPHA)
20372037
pixel_size=3;
20382038
}
20392039
png_set_palette_to_rgb(png_ptr);
2040+
png_info->bit_depth=8;
20402041
break;
20412042
case PNG_COLOR_TYPE_GRAY:
20422043
pixel_size=3;

0 commit comments

Comments
 (0)