mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Added support for ResetDC.
This commit is contained in:
parent
18036cb5a1
commit
671577296e
@ -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);
|
||||
|
17
objects/dc.c
17
objects/dc.c
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user