Changeset 2782 for libpipi


Ignore:
Timestamp:
Aug 27, 2008, 2:58:22 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed a buffer overflow in antialiased lines
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/paint/aline_template.h

    r2778 r2782  
    9898
    9999    PLOT(ix1, iy1, val1);
    100     PLOT(ix1, iy1+1, val2);
     100    PLOT(ix1, (iy1+1)<y1?(iy1+1):iy1, val2);
    101101
    102102                xf = xend + g;
     
    111111
    112112    PLOT(ix2, iy2,   val1);
    113     PLOT(ix2, iy2+1, val2);
     113    PLOT(ix2, (iy2+1)<y2?(iy2+1):iy2, val2);
    114114
    115115
     
    123123        val1 += 0.3*focus;
    124124        val2 += 0.3*focus;
    125         PLOT(vx,   y, val1);
     125        PLOT(vx, y, val1);
    126126        vx++;
    127127        PLOT(vx, y, val2);
Note: See TracChangeset for help on using the changeset viewer.