|
|
@@ -156,7 +156,7 @@ pipi_pixels_t *pipi_getpixels(pipi_image_t *img, pipi_format_t type) |
|
|
|
|
|
|
|
dest[4 * (y * img->w + x) + i] = d; |
|
|
|
|
|
|
|
e = (p - u8tof32(d)) / 8; |
|
|
|
e = (p - u8tof32(d)) / 16; |
|
|
|
if(x < img->w - 1) |
|
|
|
src[4 * (y * img->w + x + 1) + i] += e * 7; |
|
|
|
if(y < img->h - 1) |
|
|
@@ -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)) / 8; |
|
|
|
e = (p - u8tof32(d)) / 16; |
|
|
|
if(x < img->w - 1) |
|
|
|
src[4 * (y * img->w + x + 1) + i] += e * 7; |
|
|
|
if(y < img->h - 1) |
|
|
|