Use handle to palette instead of index for EMR_SELECTPALETTE.
Implemented simple case for EMR_EXTSELECTCLIPRGN.
This commit is contained in:
parent
58c58c5445
commit
02919df4c4
|
@ -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(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
case EMR_EXTSELECTCLIPRGN:
|
case EMR_EXTSELECTCLIPRGN:
|
||||||
{
|
{
|
||||||
PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr;
|
PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr;
|
||||||
|
|
||||||
/* Need to make a region out of the RGNDATA we have */
|
if ((lpRgn->cbRgnData == 0) && (lpRgn->iMode == RGN_COPY)) {
|
||||||
ExtSelectClipRgn( hdc, ..., (INT)(lpRgn->iMode) );
|
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:
|
case EMR_SETMETARGN:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue