Added support for ResetDC.

This commit is contained in:
Huw D M Davies 2002-04-06 00:00:56 +00:00 committed by Alexandre Julliard
parent 18036cb5a1
commit 671577296e
6 changed files with 16 additions and 6 deletions

View File

@ -124,6 +124,7 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC(PolylineTo);
GET_FUNC(RealizePalette);
GET_FUNC(Rectangle);
GET_FUNC(ResetDC);
GET_FUNC(RestoreDC);
GET_FUNC(RoundRect);
GET_FUNC(SaveDC);

View File

@ -92,6 +92,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
NULL, /* pPolylineTo */
NULL, /* pRealizePalette */
EMFDRV_Rectangle, /* pRectangle */
NULL, /* pResetDC */
EMFDRV_RestoreDC, /* pRestoreDC */
EMFDRV_RoundRect, /* pRoundRect */
EMFDRV_SaveDC, /* pSaveDC */

View File

@ -93,6 +93,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL, /* pPolylineTo */
NULL, /* pRealizePalette */
MFDRV_Rectangle, /* pRectangle */
NULL, /* pResetDC */
MFDRV_RestoreDC, /* pRestoreDC */
MFDRV_RoundRect, /* pRoundRect */
MFDRV_SaveDC, /* pSaveDC */

View File

@ -120,6 +120,7 @@ static const DC_FUNCTIONS WIN16DRV_Funcs =
NULL, /* pPolylineTo */
NULL, /* pRealizePalette */
WIN16DRV_Rectangle, /* pRectangle */
NULL, /* pResetDC */
NULL, /* pRestoreDC */
NULL, /* pRoundRect */
NULL, /* pSaveDC */

View File

@ -202,6 +202,7 @@ typedef struct tagDC_FUNCS
BOOL (*pPolylineTo)(PHYSDEV,const POINT*,INT);
UINT (*pRealizePalette)(PHYSDEV);
BOOL (*pRectangle)(PHYSDEV,INT,INT,INT,INT);
HDC (*pResetDC)(PHYSDEV,const DEVMODEA*);
BOOL (*pRestoreDC)(PHYSDEV,INT);
BOOL (*pRoundRect)(PHYSDEV,INT,INT,INT,INT,INT,INT);
INT (*pSaveDC)(PHYSDEV);

View File

@ -803,8 +803,7 @@ BOOL WINAPI DeleteDC( HDC hdc )
*/
HDC16 WINAPI ResetDC16( HDC16 hdc, const DEVMODEA *devmode )
{
FIXME("stub\n" );
return hdc;
return ResetDCA(hdc, devmode);
}
@ -813,8 +812,15 @@ HDC16 WINAPI ResetDC16( HDC16 hdc, const DEVMODEA *devmode )
*/
HDC WINAPI ResetDCA( HDC hdc, const DEVMODEA *devmode )
{
FIXME("stub\n" );
return hdc;
DC *dc;
HDC ret = hdc;
if ((dc = DC_GetDCPtr( hdc )))
{
if (dc->funcs->pResetDC) ret = dc->funcs->pResetDC( dc->physDev, devmode );
GDI_ReleaseObj( hdc );
}
return ret;
}
@ -823,8 +829,7 @@ HDC WINAPI ResetDCA( HDC hdc, const DEVMODEA *devmode )
*/
HDC WINAPI ResetDCW( HDC hdc, const DEVMODEW *devmode )
{
FIXME("stub\n" );
return hdc;
return ResetDCA(hdc, (const DEVMODEA*)devmode); /* FIXME */
}