Changeset 2775 for libpipi


Ignore:
Timestamp:
Aug 26, 2008, 10:15:00 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Goddammit, this time I'm fixing the f32 to u8 RGB conversion for real.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/pixels.c

    r2774 r2775  
    157157                    dest[4 * (y * img->w + x) + i] = d;
    158158
    159                     e = (p - u8tof32(d)) / 8;
     159                    e = (p - u8tof32(d)) / 16;
    160160                    if(x < img->w - 1)
    161161                        src[4 * (y * img->w + x + 1) + i] += e * 7;
     
    193193                    dest[3 * (y * img->w + x) + i] = d;
    194194
    195                     e = (p - u8tof32(d)) / 8;
     195                    e = (p - u8tof32(d)) / 16;
    196196                    if(x < img->w - 1)
    197197                        src[4 * (y * img->w + x + 1) + i] += e * 7;
Note: See TracChangeset for help on using the changeset viewer.