Skip to content
Commits on Source (2)
......@@ -92,27 +92,6 @@
#endif
static FT_Long
FT_MulDiv( FT_Long a,
FT_Long b,
FT_Long c )
{
FT_Int s;
FT_Long d;
s = 1;
if ( a < 0 ) { a = -a; s = -1; }
if ( b < 0 ) { b = -b; s = -s; }
if ( c < 0 ) { c = -c; s = -s; }
d = (FT_Long)( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c
: 0x7FFFFFFFL );
return ( s > 0 ) ? d : -d;
}
static FT_Long
FT_MulDiv_No_Round( FT_Long a,
FT_Long b,
......
......@@ -2365,16 +2365,16 @@
if ( dropOutControl & 1 )
{
/* rightmost stub test */
if ( P_Left->next == P_Right &&
P_Left->height == 1 &&
/* upper stub test */
if ( P_Left->height == 1 &&
P_Left->next == P_Right &&
!( P_Left->flags & Overshoot_Top &&
x2 - x1 >= ras.precision_half ) )
goto Next_Pair;
/* leftmost stub test */
if ( P_Right->next == P_Left &&
P_Left->offset == 0 &&
/* lower stub test */
if ( P_Left->offset == 0 &&
P_Right->next == P_Left &&
!( P_Left->flags & Overshoot_Bottom &&
x2 - x1 >= ras.precision_half ) )
goto Next_Pair;
......