Skip to content

Commit

Permalink
Fixed a bug that makes 15bpp dither no effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Apr 25, 2017
1 parent cf2140a commit 42f3428
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tosixel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,12 +1282,12 @@ sixel_encode_highcolor(
if (*mptr) {
*dst = 255;
} else {
pix = ((pixels[0] & 0xf8) << 7) |
((pixels[1] & 0xf8) << 2) |
((pixels[2] >> 3) & 0x1f);
sixel_apply_15bpp_dither(pixels,
x, y, width, height,
dither->method_for_diffuse);
pix = ((pixels[0] & 0xf8) << 7) |
((pixels[1] & 0xf8) << 2) |
((pixels[2] >> 3) & 0x1f);
if (!rgbhit[pix]) {
while (1) {
if (nextpal >= 255) {
Expand Down

0 comments on commit 42f3428

Please sign in to comment.