Changeset 1036


Ignore:
Timestamp:
Sep 16, 2006, 11:08:11 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fixing precision.
File:
1 edited

Legend:

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

    r1035 r1036  
    132132        }
    133133
    134         /* Rescale xa and xb, slightly cropping */
    135         xa = xa / 4;
    136         xb = xb / 4;
     134        /* Rescale xa and xb, recentering the division */
     135        xa = (xa + 1) / 4;
     136        xb = (xb + 2) / 4;
    137137
    138138        if(xb < 0) continue;
Note: See TracChangeset for help on using the changeset viewer.