summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-08-20 15:18:59 +0200
committerjkoan <jkoan@gmx.de>2020-08-20 15:18:59 +0200
commitaa51f10a04cc8776f3336b48f94900065cbd8726 (patch)
tree5df3573b2128465c5b1d6dc7bcbc3970f0414ea6
parent5c3a9e19ff12f2a40d27d693de6e7e9b682b61ad (diff)
downloadnavit-aa51f10a04cc8776f3336b48f94900065cbd8726.tar.gz
fix:graphics:win32:Fix build with newer libpng versions. Thx @bignaux fixes #984
-rw-r--r--navit/graphics/win32/graphics_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c
index f4eda15f4..3f20daf2b 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -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)