Added writing META_ESCAPE records.
This commit is contained in:
parent
43ff7d2d85
commit
160be64e9e
@ -56,7 +56,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
|
|||||||
NULL, /* pEnumDeviceFonts */
|
NULL, /* pEnumDeviceFonts */
|
||||||
MFDRV_ExcludeClipRect, /* pExcludeClipRect */
|
MFDRV_ExcludeClipRect, /* pExcludeClipRect */
|
||||||
NULL, /* pExtDeviceMode */
|
NULL, /* pExtDeviceMode */
|
||||||
NULL, /* pExtEscape */
|
MFDRV_ExtEscape, /* pExtEscape */
|
||||||
MFDRV_ExtFloodFill, /* pExtFloodFill */
|
MFDRV_ExtFloodFill, /* pExtFloodFill */
|
||||||
MFDRV_ExtTextOut, /* pExtTextOut */
|
MFDRV_ExtTextOut, /* pExtTextOut */
|
||||||
MFDRV_FillPath, /* pFillPath */
|
MFDRV_FillPath, /* pFillPath */
|
||||||
@ -536,4 +536,26 @@ int MFDRV_AddHandleDC( PHYSDEV dev )
|
|||||||
return physDev->nextHandle++;
|
return physDev->nextHandle++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* MFDRV_ExtEscape
|
||||||
|
*/
|
||||||
|
INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
|
||||||
|
INT cbOutput, LPVOID out_data )
|
||||||
|
{
|
||||||
|
METARECORD *mr;
|
||||||
|
DWORD len;
|
||||||
|
|
||||||
|
if(nEscape == MFCOMMENT) {
|
||||||
|
len = sizeof(*mr) + sizeof(WORD) + ((cbInput + 1) & ~1);
|
||||||
|
mr = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
|
||||||
|
mr->rdSize = len / 2;
|
||||||
|
mr->rdFunction = META_ESCAPE;
|
||||||
|
mr->rdParm[0] = nEscape;
|
||||||
|
mr->rdParm[1] = cbInput;
|
||||||
|
memcpy(&(mr->rdParm[2]), in_data, cbInput);
|
||||||
|
MFDRV_WriteRecord( dev, mr, len);
|
||||||
|
HeapFree(GetProcessHeap(), 0, mr);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@ -70,6 +70,8 @@ extern BOOL MFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
|
|||||||
extern BOOL MFDRV_EndPath( PHYSDEV dev );
|
extern BOOL MFDRV_EndPath( PHYSDEV dev );
|
||||||
extern INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
|
extern INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
|
||||||
bottom );
|
bottom );
|
||||||
|
extern INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
|
||||||
|
INT cbOutput, LPVOID out_data );
|
||||||
extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y,
|
extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y,
|
||||||
COLORREF color, UINT fillType );
|
COLORREF color, UINT fillType );
|
||||||
extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
|
extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user