diff options
author | jkoan <jkoan@gmx.de> | 2020-08-20 15:18:59 +0200 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2020-09-07 11:05:21 +0200 |
commit | 903a7e589243d6ce3b920cc7ad9398a5c41d5726 (patch) | |
tree | bb97beb6f44904cfb1dc80f47dd812af6e54e8a0 /navit/graphics | |
parent | 427fd1b0d2a02bca8f3966d896bc9ab0e3f64f5e (diff) | |
download | navit-903a7e589243d6ce3b920cc7ad9398a5c41d5726.tar.gz |
fix:graphics:win32:Fix build with newer libpng versions. Thx @bignaux fixes #984
Diffstat (limited to 'navit/graphics')
-rw-r--r-- | navit/graphics/win32/graphics_win32.c | 2 |
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) |