Changeset 1035


Ignore:
Timestamp:
Sep 16, 2006, 11:00:46 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed triangle routine so that it fits perfectly from one side to the other one (I know, that's no clear)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/triangle.c

    r982 r1035  
    133133
    134134        /* Rescale xa and xb, slightly cropping */
    135         xa = (xa + 2) / 4;
    136         xb = (xb - 2) / 4;
     135        xa = xa / 4;
     136        xb = xb / 4;
    137137
    138138        if(xb < 0) continue;
    139139        if(xa > xmax) continue;
    140140        if(xa < 0) xa = 0;
    141         if(xb > xmax) xb = xmax;
     141        if((xb) > xmax) xb = xmax;
    142142
    143143        for(x = xa; x <= xb; x++)
Note: See TracChangeset for help on using the changeset viewer.