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:
parent
06246aff90
commit
f204aab17f
@ -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,
|
static inline void write_packed_point(DWORD* location, INT* offset,
|
||||||
const GpPointF* write)
|
const GpPointF* write)
|
||||||
{
|
{
|
||||||
packed_point point;
|
packed_point *point = (packed_point *)(location + *offset);
|
||||||
|
point->X = gdip_round(write->X);
|
||||||
point.X = write->X;
|
point->Y = gdip_round(write->Y);
|
||||||
point.Y = write->Y;
|
|
||||||
memcpy(location + *offset, &point, sizeof(packed_point));
|
|
||||||
(*offset)++;
|
(*offset)++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user