summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-08-20 15:18:59 +0200
committerjkoan <jkoan@users.noreply.github.com>2020-09-07 11:05:21 +0200
commit903a7e589243d6ce3b920cc7ad9398a5c41d5726 (patch)
treebb97beb6f44904cfb1dc80f47dd812af6e54e8a0 /navit
parent427fd1b0d2a02bca8f3966d896bc9ab0e3f64f5e (diff)
downloadnavit-903a7e589243d6ce3b920cc7ad9398a5c41d5726.tar.gz
fix:graphics:win32:Fix build with newer libpng versions. Thx @bignaux fixes #984
Diffstat (limited to 'navit')
-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)