forked from minhngoc25a/freetype2
Whitespace.
This commit is contained in:
parent
5e53db25ff
commit
71c0ad6520
|
@ -201,10 +201,11 @@
|
||||||
|
|
||||||
2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
[base] Enable new algorithm for BBox_Cubic_Check.
|
[base] Enable new algorithm for `BBox_Cubic_Check'.
|
||||||
|
|
||||||
* src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove the
|
* src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove
|
||||||
old one. Improve comments.
|
the old one.
|
||||||
|
Improve comments.
|
||||||
|
|
||||||
2013-08-18 Werner Lemberg <wl@gnu.org>
|
2013-08-18 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
/* BBox_Conic_Check */
|
/* BBox_Conic_Check */
|
||||||
/* */
|
/* */
|
||||||
/* <Description> */
|
/* <Description> */
|
||||||
/* Finds the extrema of a 1-dimensional conic Bezier curve and update */
|
/* Find the extrema of a 1-dimensional conic Bezier curve and update */
|
||||||
/* a bounding range. This version uses direct computation, as it */
|
/* a bounding range. This version uses direct computation, as it */
|
||||||
/* doesn't need square roots. */
|
/* doesn't need square roots. */
|
||||||
/* */
|
/* */
|
||||||
|
@ -184,8 +184,8 @@
|
||||||
/* BBox_Cubic_Check */
|
/* BBox_Cubic_Check */
|
||||||
/* */
|
/* */
|
||||||
/* <Description> */
|
/* <Description> */
|
||||||
/* Finds the extrema of a 1-dimensional cubic Bezier curve and */
|
/* Find the extrema of a 1-dimensional cubic Bezier curve and */
|
||||||
/* updates a bounding range. This version uses iterative splitting */
|
/* update a bounding range. This version uses iterative splitting */
|
||||||
/* because it is faster than the exact solution with square roots. */
|
/* because it is faster than the exact solution with square roots. */
|
||||||
/* */
|
/* */
|
||||||
/* <Input> */
|
/* <Input> */
|
||||||
|
@ -202,7 +202,6 @@
|
||||||
/* */
|
/* */
|
||||||
/* max :: The address of the current maximum. */
|
/* max :: The address of the current maximum. */
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
static FT_Pos
|
static FT_Pos
|
||||||
update_cubic_max( FT_Pos q1,
|
update_cubic_max( FT_Pos q1,
|
||||||
FT_Pos q2,
|
FT_Pos q2,
|
||||||
|
@ -238,7 +237,7 @@
|
||||||
q3 = q3 / 2;
|
q3 = q3 / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check if either end reached the maximum */
|
/* check whether either end reached the maximum */
|
||||||
if ( q1 == q2 && q1 >= q3 )
|
if ( q1 == q2 && q1 >= q3 )
|
||||||
{
|
{
|
||||||
max = q1;
|
max = q1;
|
||||||
|
@ -254,6 +253,7 @@
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
BBox_Cubic_Check( FT_Pos p1,
|
BBox_Cubic_Check( FT_Pos p1,
|
||||||
FT_Pos p2,
|
FT_Pos p2,
|
||||||
|
@ -265,13 +265,14 @@
|
||||||
FT_Pos nmin, nmax;
|
FT_Pos nmin, nmax;
|
||||||
FT_Int shift;
|
FT_Int shift;
|
||||||
|
|
||||||
|
|
||||||
/* This function is only called when a control off-point is outside */
|
/* This function is only called when a control off-point is outside */
|
||||||
/* the bbox that contains all on-points. It finds a local extremum */
|
/* the bbox that contains all on-points. It finds a local extremum */
|
||||||
/* within the segment using iterative bisection of the segment. */
|
/* within the segment using iterative bisection of the segment. */
|
||||||
/* The fixed-point arithmentic of bisection is inherently stable */
|
/* The fixed-point arithmetic of bisection is inherently stable */
|
||||||
/* but may loose accuracy in the two lowest bits. To compensate, */
|
/* but may loose accuracy in the two lowest bits. To compensate, */
|
||||||
/* we upscale the segment if there is room. Large values may need */
|
/* we upscale the segment if there is room. Large values may need */
|
||||||
/* to be downscaled to avoid overflows during bisection bisection. */
|
/* to be downscaled to avoid overflows during bisection. */
|
||||||
/* The control off-point outside the bbox is likely to have the top */
|
/* The control off-point outside the bbox is likely to have the top */
|
||||||
/* absolute value among arguments. */
|
/* absolute value among arguments. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue