mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:04:10 +00:00
gdiplus: Initialize the dead point coordinates in "GpPointF, *ptf" to 0.
Signed-off-by: Pengpeng Dong <dongpengpeng@uniontech.com> Signed-off-by: Esme Povirk <esme@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bccd754966
commit
36e6ea9767
|
@ -323,8 +323,15 @@ static void round_points(POINT *pti, GpPointF *ptf, INT count)
|
|||
int i;
|
||||
|
||||
for(i = 0; i < count; i++){
|
||||
pti[i].x = gdip_round(ptf[i].X);
|
||||
pti[i].y = gdip_round(ptf[i].Y);
|
||||
if(isnan(ptf[i].X))
|
||||
pti[i].x = 0;
|
||||
else
|
||||
pti[i].x = gdip_round(ptf[i].X);
|
||||
|
||||
if(isnan(ptf[i].Y))
|
||||
pti[i].y = 0;
|
||||
else
|
||||
pti[i].y = gdip_round(ptf[i].Y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue