From 41bbe7073f7bf1a6cb79dd7279aa10c94be167d5 Mon Sep 17 00:00:00 2001 From: Warren Baird Date: Wed, 12 Feb 2003 01:17:25 +0000 Subject: [PATCH] Implementation of GetDeviceCaps in metafile driver. --- dlls/gdi/mfdrv/init.c | 19 ++++++++++++++++++- dlls/gdi/mfdrv/metafiledrv.h | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/dlls/gdi/mfdrv/init.c b/dlls/gdi/mfdrv/init.c index 2a6ed93eaa5..feee4fee6e7 100644 --- a/dlls/gdi/mfdrv/init.c +++ b/dlls/gdi/mfdrv/init.c @@ -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; + } +} diff --git a/dlls/gdi/mfdrv/metafiledrv.h b/dlls/gdi/mfdrv/metafiledrv.h index ea25a0db44e..696604fc482 100644 --- a/dlls/gdi/mfdrv/metafiledrv.h +++ b/dlls/gdi/mfdrv/metafiledrv.h @@ -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 );