Commit 651332ee authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Better implementation of EMF record EMR_EXTSELECTCLIPRGN.

parent 0385d9e7
...@@ -704,17 +704,10 @@ BOOL WINAPI PlayEnhMetaFileRecord( ...@@ -704,17 +704,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case EMR_EXTSELECTCLIPRGN: case EMR_EXTSELECTCLIPRGN:
{ {
PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr; PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr;
HRGN hRgn = ExtCreateRegion(NULL, lpRgn->cbRgnData, (RGNDATA *)lpRgn->RgnData);
if ((lpRgn->cbRgnData == 0) && (lpRgn->iMode == RGN_COPY)) { ExtSelectClipRgn(hdc, hRgn, (INT)(lpRgn->iMode));
ExtSelectClipRgn( hdc, 0, RGN_COPY ); /* ExtSelectClipRgn created a copy of the region */
} else { DeleteObject(hRgn);
FIXME("EMR_EXTSELECTCLIPRGN cbRgnData %lu\n", lpRgn->cbRgnData);
/* Need to make a region out of the RGNDATA we have */
/* ExtCreateRegion(....); */
/* ExtSelectClipRgn( hdc, ..., (INT)(lpRgn->iMode) ); */
}
break; break;
} }
......
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