Implementation of GetDeviceCaps in metafile driver.

oldstable
Warren Baird 2003-02-12 01:17:25 +00:00 committed by Alexandre Julliard
parent 93a8687efc
commit 41bbe7073f
2 changed files with 19 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL, /* pGetDCOrgEx */
NULL, /* pGetDIBColorTable */
NULL, /* pGetDIBits */
NULL, /* pGetDeviceCaps */
MFDRV_GetDeviceCaps, /* pGetDeviceCaps */
NULL, /* pGetDeviceGammaRamp */
NULL, /* pGetNearestColor */
NULL, /* pGetPixel */
@ -552,3 +552,20 @@ INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
}
return 0;
}
/******************************************************************
* MFDRV_GetDeviceCaps
*
*A very simple implementation that returns DT_METAFILE
*/
INT MFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
{
switch(cap)
{
case TECHNOLOGY:
return DT_METAFILE;
default:
TRACE(" unsupported capability %d, will return 0\n", cap );
return 0;
}
}

View File

@ -81,6 +81,7 @@ extern BOOL MFDRV_FillPath( PHYSDEV dev );
extern BOOL MFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
extern BOOL MFDRV_FlattenPath( PHYSDEV dev );
extern BOOL MFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
extern INT MFDRV_GetDeviceCaps( PHYSDEV dev , INT cap );
extern INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
bottom );
extern BOOL MFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );