Use handle to palette instead of index for EMR_SELECTPALETTE.

Implemented simple case for EMR_EXTSELECTCLIPRGN.
This commit is contained in:
Eric Kohl 2000-12-21 20:16:56 +00:00 committed by Alexandre Julliard
parent 58c58c5445
commit 02919df4c4
1 changed files with 11 additions and 5 deletions

View File

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