Skip to content

Commit

Permalink
Fix critical bug: sixel_dither_set_diffusion_type() (called from img2…
Browse files Browse the repository at this point in the history
…sixel -d option) doesn't work well
  • Loading branch information
saitoha committed Jun 9, 2018
1 parent 1082687 commit 600f122
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/quant.c
Expand Up @@ -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;
Expand All @@ -1315,7 +1309,6 @@ sixel_quant_apply_palette(
" methodForDiffuse: %d\n",
methodForDiffuse);
f_diffuse = diffuse_none;
f_mask = mask_a;
break;
}
}
Expand Down

0 comments on commit 600f122

Please sign in to comment.