mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[WIN32K:NTGDI]
- Avoid using floating point operations in kernel mode. CORE-10893 svn path=/trunk/; revision=74486
This commit is contained in:
parent
26344e7671
commit
80aa7fd7f9
3 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ typedef struct _BRUSHBODY
|
|||
|
||||
/* The following members are for PENs only */
|
||||
LONG lWidth;
|
||||
FLOAT eWidth;
|
||||
FLOATOBJ eWidth;
|
||||
ULONG ulPenStyle;
|
||||
DWORD *pStyle;
|
||||
ULONG dwStyleCount;
|
||||
|
|
|
@ -122,7 +122,7 @@ IntGdiExtCreatePen(
|
|||
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;
|
||||
|
|
|
@ -116,7 +116,7 @@ IntCreateStockPen(DWORD dwPenStyle,
|
|||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue