Fix critical bug: sixel_dither_set_diffusion_type() (called from img2sixel -d option) doesn't work well
@@ -1280,27 +1280,21 @@ sixel_quant_apply_palette(
switch (methodForDiffuse) {
case SIXEL_DIFFUSE_NONE:
f_diffuse = diffuse_none;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_ATKINSON:
f_diffuse = diffuse_atkinson;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_FS:
f_diffuse = diffuse_fs;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_JAJUNI:
f_diffuse = diffuse_jajuni;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_STUCKI:
f_diffuse = diffuse_stucki;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_BURKES:
f_diffuse = diffuse_burkes;
- f_mask = mask_a;
break;
case SIXEL_DIFFUSE_A_DITHER:
f_diffuse = diffuse_none;
@@ -1315,7 +1309,6 @@ sixel_quant_apply_palette(
" methodForDiffuse: %d\n",
methodForDiffuse);
f_diffuse = diffuse_none;
- f_mask = mask_a;
break;
}
}
