mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 06:38:00 +02:00
* src/truetype/ttinterp.c (Ins_MDRP,MIRP): Small tweak.
This commit is contained in:
parent
64a0c64a04
commit
6c18a397cb
1 changed files with 11 additions and 12 deletions
|
|
@ -5403,7 +5403,7 @@
|
|||
FT_Long* args )
|
||||
{
|
||||
FT_UShort point = 0;
|
||||
FT_F26Dot6 org_dist, distance;
|
||||
FT_F26Dot6 org_dist, distance, compensation;
|
||||
|
||||
|
||||
point = (FT_UShort)args[0];
|
||||
|
|
@ -5472,14 +5472,12 @@
|
|||
|
||||
/* round flag */
|
||||
|
||||
compensation = exc->GS.compensation[exc->opcode & 3];
|
||||
|
||||
if ( ( exc->opcode & 4 ) != 0 )
|
||||
{
|
||||
distance = exc->func_round( exc, org_dist,
|
||||
exc->GS.compensation[exc->opcode & 3] );
|
||||
}
|
||||
distance = exc->func_round( exc, org_dist, compensation );
|
||||
else
|
||||
distance = Round_None( exc, org_dist,
|
||||
exc->GS.compensation[exc->opcode & 3] );
|
||||
distance = Round_None( exc, org_dist, compensation );
|
||||
|
||||
/* minimum distance flag */
|
||||
|
||||
|
|
@ -5531,7 +5529,8 @@
|
|||
FT_F26Dot6 cvt_dist,
|
||||
distance,
|
||||
cur_dist,
|
||||
org_dist;
|
||||
org_dist,
|
||||
compensation;
|
||||
|
||||
FT_F26Dot6 delta;
|
||||
|
||||
|
|
@ -5597,6 +5596,8 @@
|
|||
|
||||
/* control value cut-in and round */
|
||||
|
||||
compensation = exc->GS.compensation[exc->opcode & 3];
|
||||
|
||||
if ( ( exc->opcode & 4 ) != 0 )
|
||||
{
|
||||
/* XXX: UNDOCUMENTED! Only perform cut-in test when both points */
|
||||
|
|
@ -5627,12 +5628,10 @@
|
|||
cvt_dist = org_dist;
|
||||
}
|
||||
|
||||
distance = exc->func_round( exc, cvt_dist,
|
||||
exc->GS.compensation[exc->opcode & 3] );
|
||||
distance = exc->func_round( exc, cvt_dist, compensation );
|
||||
}
|
||||
else
|
||||
distance = Round_None( exc, cvt_dist,
|
||||
exc->GS.compensation[exc->opcode & 3] );
|
||||
distance = Round_None( exc, cvt_dist, compensation );
|
||||
|
||||
/* minimum distance test */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue