gdi32: Don't implement the gamma ramp functions in the DIB driver.
This commit is contained in:
parent
13b2a3b9bc
commit
61f4767ade
|
@ -1245,8 +1245,12 @@ BOOL WINAPI GetDeviceGammaRamp(HDC hDC, LPVOID ptr)
|
||||||
TRACE("%p, %p\n", hDC, ptr);
|
TRACE("%p, %p\n", hDC, ptr);
|
||||||
if( dc )
|
if( dc )
|
||||||
{
|
{
|
||||||
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pGetDeviceGammaRamp );
|
if (GetObjectType( hDC ) != OBJ_MEMDC)
|
||||||
ret = physdev->funcs->pGetDeviceGammaRamp( physdev, ptr );
|
{
|
||||||
|
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pGetDeviceGammaRamp );
|
||||||
|
ret = physdev->funcs->pGetDeviceGammaRamp( physdev, ptr );
|
||||||
|
}
|
||||||
|
else SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
release_dc_ptr( dc );
|
release_dc_ptr( dc );
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1263,8 +1267,12 @@ BOOL WINAPI SetDeviceGammaRamp(HDC hDC, LPVOID ptr)
|
||||||
TRACE("%p, %p\n", hDC, ptr);
|
TRACE("%p, %p\n", hDC, ptr);
|
||||||
if( dc )
|
if( dc )
|
||||||
{
|
{
|
||||||
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pSetDeviceGammaRamp );
|
if (GetObjectType( hDC ) != OBJ_MEMDC)
|
||||||
ret = physdev->funcs->pSetDeviceGammaRamp( physdev, ptr );
|
{
|
||||||
|
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pSetDeviceGammaRamp );
|
||||||
|
ret = physdev->funcs->pSetDeviceGammaRamp( physdev, ptr );
|
||||||
|
}
|
||||||
|
else SetLastError( ERROR_INVALID_PARAMETER );
|
||||||
release_dc_ptr( dc );
|
release_dc_ptr( dc );
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -392,24 +392,6 @@ static UINT dibdrv_SetBoundsRect( PHYSDEV dev, RECT *rect, UINT flags )
|
||||||
return DCB_RESET; /* we don't have device-specific bounds */
|
return DCB_RESET; /* we don't have device-specific bounds */
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* dibdrv_GetDeviceGammaRamp
|
|
||||||
*/
|
|
||||||
static BOOL dibdrv_GetDeviceGammaRamp( PHYSDEV dev, void *ramp )
|
|
||||||
{
|
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* dibdrv_SetDeviceGammaRamp
|
|
||||||
*/
|
|
||||||
static BOOL dibdrv_SetDeviceGammaRamp( PHYSDEV dev, void *ramp )
|
|
||||||
{
|
|
||||||
SetLastError( ERROR_INVALID_PARAMETER );
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
const struct gdi_dc_funcs dib_driver =
|
const struct gdi_dc_funcs dib_driver =
|
||||||
{
|
{
|
||||||
NULL, /* pAbortDoc */
|
NULL, /* pAbortDoc */
|
||||||
|
@ -453,7 +435,7 @@ const struct gdi_dc_funcs dib_driver =
|
||||||
NULL, /* pGetCharABCWidthsI */
|
NULL, /* pGetCharABCWidthsI */
|
||||||
NULL, /* pGetCharWidth */
|
NULL, /* pGetCharWidth */
|
||||||
NULL, /* pGetDeviceCaps */
|
NULL, /* pGetDeviceCaps */
|
||||||
dibdrv_GetDeviceGammaRamp, /* pGetDeviceGammaRamp */
|
NULL, /* pGetDeviceGammaRamp */
|
||||||
NULL, /* pGetFontData */
|
NULL, /* pGetFontData */
|
||||||
NULL, /* pGetFontUnicodeRanges */
|
NULL, /* pGetFontUnicodeRanges */
|
||||||
NULL, /* pGetGlyphIndices */
|
NULL, /* pGetGlyphIndices */
|
||||||
|
@ -515,7 +497,7 @@ const struct gdi_dc_funcs dib_driver =
|
||||||
dibdrv_SetDCPenColor, /* pSetDCPenColor */
|
dibdrv_SetDCPenColor, /* pSetDCPenColor */
|
||||||
NULL, /* pSetDIBitsToDevice */
|
NULL, /* pSetDIBitsToDevice */
|
||||||
dibdrv_SetDeviceClipping, /* pSetDeviceClipping */
|
dibdrv_SetDeviceClipping, /* pSetDeviceClipping */
|
||||||
dibdrv_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */
|
NULL, /* pSetDeviceGammaRamp */
|
||||||
NULL, /* pSetLayout */
|
NULL, /* pSetLayout */
|
||||||
NULL, /* pSetMapMode */
|
NULL, /* pSetMapMode */
|
||||||
NULL, /* pSetMapperFlags */
|
NULL, /* pSetMapperFlags */
|
||||||
|
|
Loading…
Reference in New Issue