Commit 67157729 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Added support for ResetDC.

parent 18036cb5
......@@ -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);
......
......@@ -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 */
......
......@@ -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 */
......
......@@ -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 */
......
......@@ -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);
......
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment