Commit f204aab1 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Use same rounding formula that is used to decide whether a path should…

gdiplus: Use same rounding formula that is used to decide whether a path should be stored as an array integers.
parent 06246aff
......@@ -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)++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment