- Avoid using floating point operations in kernel mode.
CORE-10893
svn path=/trunk/; revision=74486
/* The following members are for PENs only */
LONG lWidth;
- FLOAT eWidth;
+ FLOATOBJ eWidth;
ULONG ulPenStyle;
DWORD *pStyle;
ULONG dwStyleCount;
dwWidth = 1;
pbrushPen->lWidth = dwWidth;
- pbrushPen->eWidth = (FLOAT)pbrushPen->lWidth;
+ FLOATOBJ_SetLong(&pbrushPen->eWidth, pbrushPen->lWidth);
pbrushPen->ulPenStyle = dwPenStyle;
pbrushPen->BrushAttr.lbColor = ulColor;
pbrushPen->iBrushStyle = ulBrushStyle;
pbrushPen->iHatch = 0;
pbrushPen->lWidth = abs(dwWidth);
- pbrushPen->eWidth = (FLOAT)pbrushPen->lWidth;
+ FLOATOBJ_SetLong(&pbrushPen->eWidth, pbrushPen->lWidth);
pbrushPen->ulPenStyle = dwPenStyle;
pbrushPen->BrushAttr.lbColor = ulColor;
pbrushPen->iBrushStyle = ulBrushStyle;