Commit 02919df4 authored by Eric Kohl's avatar Eric Kohl Committed by Alexandre Julliard

Use handle to palette instead of index for EMR_SELECTPALETTE.

Implemented simple case for EMR_EXTSELECTCLIPRGN.
parent 58c58c54
...@@ -668,7 +668,7 @@ BOOL WINAPI PlayEnhMetaFileRecord( ...@@ -668,7 +668,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
/* FIXME: Should this be forcing background mode? */ /* FIXME: Should this be forcing background mode? */
(handletable->objectHandle)[ lpSelectPal->ihPal ] = (handletable->objectHandle)[ lpSelectPal->ihPal ] =
SelectPalette( hdc, lpSelectPal->ihPal, FALSE ); SelectPalette( hdc, (handletable->objectHandle)[lpSelectPal->ihPal], FALSE );
break; break;
} }
...@@ -678,16 +678,22 @@ BOOL WINAPI PlayEnhMetaFileRecord( ...@@ -678,16 +678,22 @@ BOOL WINAPI PlayEnhMetaFileRecord(
break; break;
} }
#if 0
case EMR_EXTSELECTCLIPRGN: case EMR_EXTSELECTCLIPRGN:
{ {
PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr; PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr;
if ((lpRgn->cbRgnData == 0) && (lpRgn->iMode == RGN_COPY)) {
ExtSelectClipRgn( hdc, 0, RGN_COPY );
} else {
FIXME("EMR_EXTSELECTCLIPRGN cbRgnData %lu\n", lpRgn->cbRgnData);
/* Need to make a region out of the RGNDATA we have */ /* Need to make a region out of the RGNDATA we have */
ExtSelectClipRgn( hdc, ..., (INT)(lpRgn->iMode) ); /* ExtCreateRegion(....); */
/* ExtSelectClipRgn( hdc, ..., (INT)(lpRgn->iMode) ); */
}
break;
} }
#endif
case EMR_SETMETARGN: case EMR_SETMETARGN:
{ {
......
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