wok-next rev 20340
directfb: update png patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 17 12:53:08 2017 +0100 (2017-11-17) |
parents | 3d5fe73ca04f |
children | 6b6854289368 |
files | directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch |
line diff
1.1 --- a/directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch Fri Nov 17 12:56:24 2017 +0200 1.2 +++ b/directfb/stuff/patches/DirectFB-1.4.9-libpng-1.5.patch Fri Nov 17 12:53:08 2017 +0100 1.3 @@ -90,7 +90,7 @@ 1.4 if (data->color_type == PNG_COLOR_TYPE_PALETTE) { 1.5 u32 key; 1.6 - png_colorp palette = data->info_ptr->palette; 1.7 -- png_bytep trans = data->info_ptr->trans_alpha; 1.8 +- png_bytep trans = data->info_ptr->trans; 1.9 - int num_colors = MIN( MAXCOLORMAPSIZE, 1.10 - data->info_ptr->num_palette ); 1.11 - u8 cmap[3][num_colors]; 1.12 @@ -119,7 +119,7 @@ 1.13 } 1.14 else { 1.15 /* ...or based on trans rgb value */ 1.16 -- png_color_16p trans = &data->info_ptr->trans_color; 1.17 +- png_color_16p trans = &data->info_ptr->trans_values; 1.18 - 1.19 - data->color_key = (((trans->red & 0xff00) << 8) | 1.20 - ((trans->green & 0xff00)) | 1.21 @@ -133,7 +133,7 @@ 1.22 switch (data->color_type) { 1.23 case PNG_COLOR_TYPE_PALETTE: { 1.24 - png_colorp palette = data->info_ptr->palette; 1.25 -- png_bytep trans = data->info_ptr->trans_alpha; 1.26 +- png_bytep trans = data->info_ptr->trans; 1.27 - int num_trans = data->info_ptr->num_trans; 1.28 - int num_colors = MIN( MAXCOLORMAPSIZE, data->info_ptr->num_palette ); 1.29 + png_colorp palette;