diff --git a/pipi/pixels.c b/pipi/pixels.c index da3e371..fae3049 100644 --- a/pipi/pixels.c +++ b/pipi/pixels.c @@ -192,7 +192,7 @@ pipi_pixels_t *pipi_getpixels(pipi_image_t *img, pipi_format_t type) dest[3 * (y * img->w + x) + i] = d; - e = (p - u8tof32(d)); + e = (p - u8tof32(d)) / 8; if(x < img->w - 1) src[4 * (y * img->w + x + 1) + i] += e * 7; if(y < img->h - 1)