diff --git a/briquolo/src/MOGL/MOGL_Image.cpp b/briquolo/src/MOGL/MOGL_Image.cpp index 7d3159c..b146cb3 100644 --- a/briquolo/src/MOGL/MOGL_Image.cpp +++ b/briquolo/src/MOGL/MOGL_Image.cpp @@ -235,7 +235,7 @@ bool MOGL_Image::ChargerPNG(const char * p_NomFichier) /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ if (color_type == PNG_COLOR_TYPE_GRAY && 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 paletted or RGB images with transparency to full alpha channels diff --git a/briquolo/src/MOGL/MOGL_Image.h b/briquolo/src/MOGL/MOGL_Image.h index b73ed7e..8817984 100644 --- a/briquolo/src/MOGL/MOGL_Image.h +++ b/briquolo/src/MOGL/MOGL_Image.h @@ -25,6 +25,8 @@ #include "MOGL_Structure.h" #include +#define png_infopp_NULL (png_infopp)NULL + using namespace std; class MOGL_Image