gdiplus: Fix saving pen dashed line cap style to metafile.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a172cc6c6e
commit
70afb4ecd0
|
@ -2791,7 +2791,7 @@ static GpStatus METAFILE_AddPenObject(GpMetafile *metafile, GpPen *pen, DWORD *i
|
||||||
data_flags |= PenDataLineStyle;
|
data_flags |= PenDataLineStyle;
|
||||||
pen_data_size += sizeof(DWORD);
|
pen_data_size += sizeof(DWORD);
|
||||||
}
|
}
|
||||||
if (pen->dash != (GpDashStyle)DashCapFlat)
|
if (pen->dashcap != DashCapFlat)
|
||||||
{
|
{
|
||||||
data_flags |= PenDataDashedLineCap;
|
data_flags |= PenDataDashedLineCap;
|
||||||
pen_data_size += sizeof(DWORD);
|
pen_data_size += sizeof(DWORD);
|
||||||
|
@ -2879,7 +2879,7 @@ static GpStatus METAFILE_AddPenObject(GpMetafile *metafile, GpPen *pen, DWORD *i
|
||||||
}
|
}
|
||||||
if (data_flags & PenDataDashedLineCap)
|
if (data_flags & PenDataDashedLineCap)
|
||||||
{
|
{
|
||||||
*(DWORD*)(pen_data->OptionalData + i) = pen->dash;
|
*(DWORD*)(pen_data->OptionalData + i) = pen->dashcap;
|
||||||
i += sizeof(DWORD);
|
i += sizeof(DWORD);
|
||||||
}
|
}
|
||||||
if (data_flags & PenDataDashedLineOffset)
|
if (data_flags & PenDataDashedLineOffset)
|
||||||
|
|
Loading…
Reference in New Issue