forked from minhngoc25a/freetype2
Fixed compilation bug for standalone mode.
This commit is contained in:
parent
f6356ab713
commit
9ab7c3c37e
|
@ -2258,7 +2258,7 @@
|
||||||
FT_Vector v_start;
|
FT_Vector v_start;
|
||||||
|
|
||||||
FT_Vector* point;
|
FT_Vector* point;
|
||||||
PByte flags;
|
char* flags;
|
||||||
|
|
||||||
int n; /* index of contour in outline */
|
int n; /* index of contour in outline */
|
||||||
int first; /* index of first point in contour */
|
int first; /* index of first point in contour */
|
||||||
|
@ -3112,8 +3112,8 @@
|
||||||
#ifdef FT_RASTER_OPTION_CONTRAST
|
#ifdef FT_RASTER_OPTION_CONTRAST
|
||||||
if ( x2-x1 < PRECISION )
|
if ( x2-x1 < PRECISION )
|
||||||
{
|
{
|
||||||
x1 = ((x1+x2) >> 1) - PRECISION_HALF;
|
x1 = ((x1+x2) >> 1) - PRECISION_HALF;
|
||||||
x2 = x1 + PRECISION;
|
x2 = x1 + PRECISION;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -3326,10 +3326,10 @@
|
||||||
|
|
||||||
#ifdef FT_RASTER_OPTION_CONTRAST
|
#ifdef FT_RASTER_OPTION_CONTRAST
|
||||||
if (x2-x1 < PRECISION)
|
if (x2-x1 < PRECISION)
|
||||||
{
|
{
|
||||||
x1 = ((x1+x2) >> 1) - PRECISION_HALF;
|
x1 = ((x1+x2) >> 1) - PRECISION_HALF;
|
||||||
x2 = x1 + PRECISION;
|
x2 = x1 + PRECISION;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
e1 = TRUNC( x1 );
|
e1 = TRUNC( x1 );
|
||||||
|
|
Loading…
Reference in New Issue