Commit 4c02a51d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Handle EMR_CREATEMONOBRUSH record in spool files.

parent 94456eb4
......@@ -188,6 +188,17 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable,
return PSDRV_LineTo(&data->pdev->dev, line->ptl.x, line->ptl.y) &&
MoveToEx(data->pdev->dev.hdc, line->ptl.x, line->ptl.y, NULL);
}
case EMR_CREATEMONOBRUSH:
{
const EMRCREATEMONOBRUSH *p = (const EMRCREATEMONOBRUSH *)rec;
if (!PlayEnhMetaFileRecord(data->pdev->dev.hdc, htable, rec, n))
return 0;
data->patterns[p->ihBrush].usage = p->iUsage;
data->patterns[p->ihBrush].info = (BITMAPINFO *)((BYTE *)p + p->offBmi);
data->patterns[p->ihBrush].bits.ptr = (BYTE *)p + p->offBits;
return 1;
}
case EMR_MOVETOEX:
return PlayEnhMetaFileRecord(data->pdev->dev.hdc, htable, rec, n);
......
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