Pārlūkot izejas kodu

* Goddammit, this time I'm fixing the f32 to u8 RGB conversion for real.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2775 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam pirms 16 gadiem
vecāks
revīzija
541e0213f7
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      pipi/pixels.c

+ 2
- 2
pipi/pixels.c Parādīt failu

@@ -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)


Notiek ielāde…
Atcelt
Saglabāt