Skip to content

Commit

Permalink
fix:graphics:win32:Fix build with newer libpng versions. Thx @bignaux f…
Browse files Browse the repository at this point in the history
…ixes #984
  • Loading branch information
jkoan committed Sep 7, 2020
1 parent 427fd1b commit 903a7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navit/graphics/win32/graphics_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ static int pngdecode(struct graphics_priv *gr, char *name, struct graphics_image

/* expand images to bit-depth 8 (only applicable for grayscale images) */
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA && 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 */
if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
Expand Down

0 comments on commit 903a7e5

Please sign in to comment.