mirror of
https://github.com/reactos/reactos.git
synced 2025-06-15 10:48:40 +00:00
[WIN32SS][NTGDI] Don't use FLOAT in IntEscapeMatrix (#1572)
Appendum to 1a40284
. Use a 16.16 fixed point value instead of FLOAT. CORE-15838
This commit is contained in:
parent
e5bffe49da
commit
0137096449
1 changed files with 2 additions and 2 deletions
|
@ -719,8 +719,8 @@ VOID FASTCALL IntWidthMatrix(FT_Face face, FT_Matrix *pmat, LONG lfWidth)
|
|||
VOID FASTCALL IntEscapeMatrix(FT_Matrix *pmat, LONG lfEscapement)
|
||||
{
|
||||
FT_Vector vecAngle;
|
||||
/* Convert from angle in tenths of degrees to 'FT_Angle' degrees */
|
||||
FT_Angle angle = FT_FixedFromFloat((FLOAT)lfEscapement / 10);
|
||||
/* Convert the angle in tenths of degrees into degrees as a 16.16 fixed-point value */
|
||||
FT_Angle angle = INT_TO_FIXED(lfEscapement) / 10;
|
||||
FT_Vector_Unit(&vecAngle, angle);
|
||||
pmat->xx = vecAngle.x;
|
||||
pmat->xy = -vecAngle.y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue