Changeset 2774 for libpipi


Ignore:
Timestamp:
Aug 26, 2008, 10:13:44 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • pixels.c: fix a bug in the f32 to u8 RGB conversion.
File:
1 edited

Legend:

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

    r2773 r2774  
    193193                    dest[3 * (y * img->w + x) + i] = d;
    194194
    195                     e = (p - u8tof32(d));
     195                    e = (p - u8tof32(d)) / 8;
    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.