gdi32: Get rid of the SetDIBits driver entry point.
This commit is contained in:
parent
65997a2a2d
commit
8a906250eb
|
@ -79,13 +79,6 @@ LONG nulldrv_SetBitmapBits( HBITMAP bitmap, const void *bits, LONG size )
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
INT nulldrv_SetDIBits( PHYSDEV dev, HBITMAP bitmap, UINT start, UINT lines,
|
|
||||||
const void *bits, const BITMAPINFO *info, UINT coloruse )
|
|
||||||
{
|
|
||||||
/* FIXME: transfer bits to bmp->bitmap.bmBits */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* BITMAP_GetWidthBytes
|
* BITMAP_GetWidthBytes
|
||||||
*
|
*
|
||||||
|
|
|
@ -397,8 +397,8 @@ INT nulldrv_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst, INT he
|
||||||
HBITMAP hBitmap;
|
HBITMAP hBitmap;
|
||||||
HDC hdcMem;
|
HDC hdcMem;
|
||||||
|
|
||||||
/* make sure we have a real implementation for StretchBlt and SetDIBits */
|
/* make sure we have a real implementation for StretchBlt and PutImage */
|
||||||
if (GET_DC_PHYSDEV( dc, pStretchBlt ) == dev || GET_DC_PHYSDEV( dc, pSetDIBits ) == dev)
|
if (GET_DC_PHYSDEV( dc, pStretchBlt ) == dev || GET_DC_PHYSDEV( dc, pPutImage ) == dev)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (DIB_GetBitmapInfo( &info->bmiHeader, &width, &height, &planes, &bpp, &compr, &size ) == -1)
|
if (DIB_GetBitmapInfo( &info->bmiHeader, &width, &height, &planes, &bpp, &compr, &size ) == -1)
|
||||||
|
|
|
@ -522,7 +522,6 @@ const DC_FUNCTIONS dib_driver =
|
||||||
dibdrv_SetDCBrushColor, /* pSetDCBrushColor */
|
dibdrv_SetDCBrushColor, /* pSetDCBrushColor */
|
||||||
dibdrv_SetDCPenColor, /* pSetDCPenColor */
|
dibdrv_SetDCPenColor, /* pSetDCPenColor */
|
||||||
dibdrv_SetDIBColorTable, /* pSetDIBColorTable */
|
dibdrv_SetDIBColorTable, /* pSetDIBColorTable */
|
||||||
NULL, /* pSetDIBits */
|
|
||||||
NULL, /* pSetDIBitsToDevice */
|
NULL, /* pSetDIBitsToDevice */
|
||||||
dibdrv_SetDeviceClipping, /* pSetDeviceClipping */
|
dibdrv_SetDeviceClipping, /* pSetDeviceClipping */
|
||||||
NULL, /* pSetDeviceGammaRamp */
|
NULL, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -762,7 +762,6 @@ const DC_FUNCTIONS null_driver =
|
||||||
nulldrv_SetDCBrushColor, /* pSetDCBrushColor */
|
nulldrv_SetDCBrushColor, /* pSetDCBrushColor */
|
||||||
nulldrv_SetDCPenColor, /* pSetDCPenColor */
|
nulldrv_SetDCPenColor, /* pSetDCPenColor */
|
||||||
nulldrv_SetDIBColorTable, /* pSetDIBColorTable */
|
nulldrv_SetDIBColorTable, /* pSetDIBColorTable */
|
||||||
nulldrv_SetDIBits, /* pSetDIBits */
|
|
||||||
nulldrv_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
nulldrv_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
||||||
nulldrv_SetDeviceClipping, /* pSetDeviceClipping */
|
nulldrv_SetDeviceClipping, /* pSetDeviceClipping */
|
||||||
nulldrv_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */
|
nulldrv_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -125,7 +125,6 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
|
||||||
EMFDRV_SetDCBrushColor, /* pSetDCBrushColor*/
|
EMFDRV_SetDCBrushColor, /* pSetDCBrushColor*/
|
||||||
EMFDRV_SetDCPenColor, /* pSetDCPenColor*/
|
EMFDRV_SetDCPenColor, /* pSetDCPenColor*/
|
||||||
NULL, /* pSetDIBColorTable */
|
NULL, /* pSetDIBColorTable */
|
||||||
NULL, /* pSetDIBits */
|
|
||||||
EMFDRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
EMFDRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
||||||
NULL, /* pSetDeviceClipping */
|
NULL, /* pSetDeviceClipping */
|
||||||
NULL, /* pSetDeviceGammaRamp */
|
NULL, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -499,7 +499,6 @@ extern BOOL nulldrv_ScaleViewportExtEx( PHYSDEV dev, INT x_num, INT x_denom, INT
|
||||||
extern BOOL nulldrv_ScaleWindowExtEx( PHYSDEV dev, INT x_num, INT x_denom, INT y_num, INT y_denom, SIZE *size ) DECLSPEC_HIDDEN;
|
extern BOOL nulldrv_ScaleWindowExtEx( PHYSDEV dev, INT x_num, INT x_denom, INT y_num, INT y_denom, SIZE *size ) DECLSPEC_HIDDEN;
|
||||||
extern BOOL nulldrv_SelectClipPath( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
extern BOOL nulldrv_SelectClipPath( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
||||||
extern LONG nulldrv_SetBitmapBits( HBITMAP bitmap, const void *bits, LONG size ) DECLSPEC_HIDDEN;
|
extern LONG nulldrv_SetBitmapBits( HBITMAP bitmap, const void *bits, LONG size ) DECLSPEC_HIDDEN;
|
||||||
extern INT nulldrv_SetDIBits( PHYSDEV dev, HBITMAP bitmap, UINT start, UINT lines, const void *bits, const BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN;
|
|
||||||
extern INT nulldrv_SetMapMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
extern INT nulldrv_SetMapMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
||||||
extern BOOL nulldrv_SetViewportExtEx( PHYSDEV dev, INT cx, INT cy, SIZE *size ) DECLSPEC_HIDDEN;
|
extern BOOL nulldrv_SetViewportExtEx( PHYSDEV dev, INT cx, INT cy, SIZE *size ) DECLSPEC_HIDDEN;
|
||||||
extern BOOL nulldrv_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
extern BOOL nulldrv_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
||||||
|
|
|
@ -169,7 +169,6 @@ static const DC_FUNCTIONS MFDRV_Funcs =
|
||||||
MFDRV_SetDCBrushColor, /* pSetDCBrushColor*/
|
MFDRV_SetDCBrushColor, /* pSetDCBrushColor*/
|
||||||
MFDRV_SetDCPenColor, /* pSetDCPenColor*/
|
MFDRV_SetDCPenColor, /* pSetDCPenColor*/
|
||||||
NULL, /* pSetDIBColorTable */
|
NULL, /* pSetDIBColorTable */
|
||||||
NULL, /* pSetDIBits */
|
|
||||||
MFDRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
MFDRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
||||||
NULL, /* pSetDeviceClipping */
|
NULL, /* pSetDeviceClipping */
|
||||||
NULL, /* pSetDeviceGammaRamp */
|
NULL, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -891,7 +891,6 @@ static const struct gdi_dc_funcs psdrv_funcs =
|
||||||
PSDRV_SetDCBrushColor, /* pSetDCBrushColor */
|
PSDRV_SetDCBrushColor, /* pSetDCBrushColor */
|
||||||
PSDRV_SetDCPenColor, /* pSetDCPenColor */
|
PSDRV_SetDCPenColor, /* pSetDCPenColor */
|
||||||
NULL, /* pSetDIBColorTable */
|
NULL, /* pSetDIBColorTable */
|
||||||
NULL, /* pSetDIBits */
|
|
||||||
NULL, /* pSetDIBitsToDevice */
|
NULL, /* pSetDIBitsToDevice */
|
||||||
NULL, /* pSetDeviceClipping */
|
NULL, /* pSetDeviceClipping */
|
||||||
NULL, /* pSetDeviceGammaRamp */
|
NULL, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -534,7 +534,6 @@ static const struct gdi_dc_funcs x11drv_funcs =
|
||||||
X11DRV_SetDCBrushColor, /* pSetDCBrushColor */
|
X11DRV_SetDCBrushColor, /* pSetDCBrushColor */
|
||||||
X11DRV_SetDCPenColor, /* pSetDCPenColor */
|
X11DRV_SetDCPenColor, /* pSetDCPenColor */
|
||||||
X11DRV_SetDIBColorTable, /* pSetDIBColorTable */
|
X11DRV_SetDIBColorTable, /* pSetDIBColorTable */
|
||||||
NULL, /* pSetDIBits */
|
|
||||||
X11DRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
X11DRV_SetDIBitsToDevice, /* pSetDIBitsToDevice */
|
||||||
X11DRV_SetDeviceClipping, /* pSetDeviceClipping */
|
X11DRV_SetDeviceClipping, /* pSetDeviceClipping */
|
||||||
X11DRV_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */
|
X11DRV_SetDeviceGammaRamp, /* pSetDeviceGammaRamp */
|
||||||
|
|
|
@ -143,7 +143,6 @@ struct gdi_dc_funcs
|
||||||
COLORREF (*pSetDCBrushColor)(PHYSDEV, COLORREF);
|
COLORREF (*pSetDCBrushColor)(PHYSDEV, COLORREF);
|
||||||
COLORREF (*pSetDCPenColor)(PHYSDEV, COLORREF);
|
COLORREF (*pSetDCPenColor)(PHYSDEV, COLORREF);
|
||||||
UINT (*pSetDIBColorTable)(PHYSDEV,UINT,UINT,const RGBQUAD*);
|
UINT (*pSetDIBColorTable)(PHYSDEV,UINT,UINT,const RGBQUAD*);
|
||||||
INT (*pSetDIBits)(PHYSDEV,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
|
|
||||||
INT (*pSetDIBitsToDevice)(PHYSDEV,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
|
INT (*pSetDIBitsToDevice)(PHYSDEV,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT);
|
||||||
VOID (*pSetDeviceClipping)(PHYSDEV,HRGN,HRGN);
|
VOID (*pSetDeviceClipping)(PHYSDEV,HRGN,HRGN);
|
||||||
BOOL (*pSetDeviceGammaRamp)(PHYSDEV,LPVOID);
|
BOOL (*pSetDeviceGammaRamp)(PHYSDEV,LPVOID);
|
||||||
|
@ -191,7 +190,7 @@ struct gdi_dc_funcs
|
||||||
};
|
};
|
||||||
|
|
||||||
/* increment this when you change the DC function table */
|
/* increment this when you change the DC function table */
|
||||||
#define WINE_GDI_DRIVER_VERSION 7
|
#define WINE_GDI_DRIVER_VERSION 8
|
||||||
|
|
||||||
static inline PHYSDEV get_physdev_entry_point( PHYSDEV dev, size_t offset )
|
static inline PHYSDEV get_physdev_entry_point( PHYSDEV dev, size_t offset )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue