# HG changeset patch # User Pascal Bellard # Date 1510919588 -3600 # Node ID fdfd62313081193f9c41a2635a5202ea19a6af4d # Parent 3d5fe73ca04f93390b34c565cd817c52a3e02405 directfb: update png patch diff -r 3d5fe73ca04f -r fdfd62313081 directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch --- a/directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch Fri Nov 17 12:56:24 2017 +0200 +++ b/directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch Fri Nov 17 12:53:08 2017 +0100 @@ -90,7 +90,7 @@ if (data->color_type == PNG_COLOR_TYPE_PALETTE) { u32 key; - png_colorp palette = data->info_ptr->palette; -- png_bytep trans = data->info_ptr->trans_alpha; +- png_bytep trans = data->info_ptr->trans; - int num_colors = MIN( MAXCOLORMAPSIZE, - data->info_ptr->num_palette ); - u8 cmap[3][num_colors]; @@ -119,7 +119,7 @@ } else { /* ...or based on trans rgb value */ -- png_color_16p trans = &data->info_ptr->trans_color; +- png_color_16p trans = &data->info_ptr->trans_values; - - data->color_key = (((trans->red & 0xff00) << 8) | - ((trans->green & 0xff00)) | @@ -133,7 +133,7 @@ switch (data->color_type) { case PNG_COLOR_TYPE_PALETTE: { - png_colorp palette = data->info_ptr->palette; -- png_bytep trans = data->info_ptr->trans_alpha; +- png_bytep trans = data->info_ptr->trans; - int num_trans = data->info_ptr->num_trans; - int num_colors = MIN( MAXCOLORMAPSIZE, data->info_ptr->num_palette ); + png_colorp palette;