Commit a6ceafae authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Handle EMR_INVERTRGN record in spool files.

parent e9da35db
......@@ -986,6 +986,19 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable,
DeleteObject(frame);
return ret;
}
case EMR_INVERTRGN:
{
const EMRINVERTRGN *p = (const EMRINVERTRGN *)rec;
int old_rop, ret;
HRGN rgn;
rgn = ExtCreateRegion(NULL, p->cbRgnData, (const RGNDATA *)p->RgnData);
old_rop = SetROP2(data->pdev->dev.hdc, R2_NOT);
ret = fill_rgn(data, htable, 0x80000000 | BLACK_BRUSH, rgn);
SetROP2(data->pdev->dev.hdc, old_rop);
DeleteObject(rgn);
return ret;
}
case EMR_PAINTRGN:
{
const EMRPAINTRGN *p = (const EMRPAINTRGN *)rec;
......
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