gdiplus: Use same rounding formula that is used to decide whether a path should be stored as an array integers.

This commit is contained in:
Dmitry Timoshkov 2013-11-08 16:33:26 +09:00 committed by Alexandre Julliard
parent 06246aff90
commit f204aab17f
1 changed files with 3 additions and 5 deletions

View File

@ -739,11 +739,9 @@ static inline void write_float(DWORD* location, INT* offset, const FLOAT write)
static inline void write_packed_point(DWORD* location, INT* offset,
const GpPointF* write)
{
packed_point point;
point.X = write->X;
point.Y = write->Y;
memcpy(location + *offset, &point, sizeof(packed_point));
packed_point *point = (packed_point *)(location + *offset);
point->X = gdip_round(write->X);
point->Y = gdip_round(write->Y);
(*offset)++;
}