Commit 95cba0c0 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Add a DC driver entry point for GdiGradientFill.

parent afd96212
...@@ -586,6 +586,7 @@ const struct gdi_dc_funcs dib_driver = ...@@ -586,6 +586,7 @@ const struct gdi_dc_funcs dib_driver =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
NULL, /* pGetTextMetrics */ NULL, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
dibdrv_LineTo, /* pLineTo */ dibdrv_LineTo, /* pLineTo */
......
...@@ -796,6 +796,7 @@ const struct gdi_dc_funcs null_driver = ...@@ -796,6 +796,7 @@ const struct gdi_dc_funcs null_driver =
nulldrv_GetTextExtentExPointI, /* pGetTextExtentExPointI */ nulldrv_GetTextExtentExPointI, /* pGetTextExtentExPointI */
nulldrv_GetTextFace, /* pGetTextFace */ nulldrv_GetTextFace, /* pGetTextFace */
nulldrv_GetTextMetrics, /* pGetTextMetrics */ nulldrv_GetTextMetrics, /* pGetTextMetrics */
nulldrv_GradientFill, /* pGradientFill */
nulldrv_IntersectClipRect, /* pIntersectClipRect */ nulldrv_IntersectClipRect, /* pIntersectClipRect */
nulldrv_InvertRgn, /* pInvertRgn */ nulldrv_InvertRgn, /* pInvertRgn */
nulldrv_LineTo, /* pLineTo */ nulldrv_LineTo, /* pLineTo */
......
...@@ -97,6 +97,7 @@ static const struct gdi_dc_funcs EMFDRV_Funcs = ...@@ -97,6 +97,7 @@ static const struct gdi_dc_funcs EMFDRV_Funcs =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
NULL, /* pGetTextMetrics */ NULL, /* pGetTextMetrics */
NULL, /* pGradientFill */
EMFDRV_IntersectClipRect, /* pIntersectClipRect */ EMFDRV_IntersectClipRect, /* pIntersectClipRect */
EMFDRV_InvertRgn, /* pInvertRgn */ EMFDRV_InvertRgn, /* pInvertRgn */
EMFDRV_LineTo, /* pLineTo */ EMFDRV_LineTo, /* pLineTo */
......
...@@ -7183,6 +7183,7 @@ static const struct gdi_dc_funcs freetype_funcs = ...@@ -7183,6 +7183,7 @@ static const struct gdi_dc_funcs freetype_funcs =
freetype_GetTextExtentExPointI, /* pGetTextExtentExPointI */ freetype_GetTextExtentExPointI, /* pGetTextExtentExPointI */
freetype_GetTextFace, /* pGetTextFace */ freetype_GetTextFace, /* pGetTextFace */
freetype_GetTextMetrics, /* pGetTextMetrics */ freetype_GetTextMetrics, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
NULL, /* pLineTo */ NULL, /* pLineTo */
......
...@@ -364,6 +364,8 @@ extern BOOL nulldrv_FrameRgn( PHYSDEV dev, HRGN rgn, HBRUSH brush, INT width, IN ...@@ -364,6 +364,8 @@ extern BOOL nulldrv_FrameRgn( PHYSDEV dev, HRGN rgn, HBRUSH brush, INT width, IN
extern LONG nulldrv_GetBitmapBits( HBITMAP bitmap, void *bits, LONG size ) DECLSPEC_HIDDEN; extern LONG nulldrv_GetBitmapBits( HBITMAP bitmap, void *bits, LONG size ) DECLSPEC_HIDDEN;
extern DWORD nulldrv_GetImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, struct gdi_image_bits *bits, struct bitblt_coords *src ) DECLSPEC_HIDDEN; extern DWORD nulldrv_GetImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info, struct gdi_image_bits *bits, struct bitblt_coords *src ) DECLSPEC_HIDDEN;
extern COLORREF nulldrv_GetNearestColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN; extern COLORREF nulldrv_GetNearestColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
extern BOOL nulldrv_GradientFill( PHYSDEV dev, TRIVERTEX *vert_array, ULONG nvert,
void * grad_array, ULONG ngrad, ULONG mode ) DECLSPEC_HIDDEN;
extern INT nulldrv_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom ) DECLSPEC_HIDDEN; extern INT nulldrv_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom ) DECLSPEC_HIDDEN;
extern BOOL nulldrv_InvertRgn( PHYSDEV dev, HRGN rgn ) DECLSPEC_HIDDEN; extern BOOL nulldrv_InvertRgn( PHYSDEV dev, HRGN rgn ) DECLSPEC_HIDDEN;
extern BOOL nulldrv_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, DWORD mode ) DECLSPEC_HIDDEN; extern BOOL nulldrv_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, DWORD mode ) DECLSPEC_HIDDEN;
......
...@@ -142,6 +142,7 @@ static const struct gdi_dc_funcs MFDRV_Funcs = ...@@ -142,6 +142,7 @@ static const struct gdi_dc_funcs MFDRV_Funcs =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
NULL, /* pGetTextMetrics */ NULL, /* pGetTextMetrics */
NULL, /* pGradientFill */
MFDRV_IntersectClipRect, /* pIntersectClipRect */ MFDRV_IntersectClipRect, /* pIntersectClipRect */
MFDRV_InvertRgn, /* pInvertRgn */ MFDRV_InvertRgn, /* pInvertRgn */
MFDRV_LineTo, /* pLineTo */ MFDRV_LineTo, /* pLineTo */
......
...@@ -2315,6 +2315,7 @@ const struct gdi_dc_funcs path_driver = ...@@ -2315,6 +2315,7 @@ const struct gdi_dc_funcs path_driver =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
NULL, /* pGetTextMetrics */ NULL, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
pathdrv_LineTo, /* pLineTo */ pathdrv_LineTo, /* pLineTo */
......
...@@ -879,6 +879,7 @@ static const struct gdi_dc_funcs psdrv_funcs = ...@@ -879,6 +879,7 @@ static const struct gdi_dc_funcs psdrv_funcs =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
PSDRV_GetTextMetrics, /* pGetTextMetrics */ PSDRV_GetTextMetrics, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
PSDRV_LineTo, /* pLineTo */ PSDRV_LineTo, /* pLineTo */
......
...@@ -526,6 +526,7 @@ static const struct gdi_dc_funcs x11drv_funcs = ...@@ -526,6 +526,7 @@ static const struct gdi_dc_funcs x11drv_funcs =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
X11DRV_GetTextMetrics, /* pGetTextMetrics */ X11DRV_GetTextMetrics, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
X11DRV_LineTo, /* pLineTo */ X11DRV_LineTo, /* pLineTo */
......
...@@ -3071,6 +3071,7 @@ static const struct gdi_dc_funcs xrender_funcs = ...@@ -3071,6 +3071,7 @@ static const struct gdi_dc_funcs xrender_funcs =
NULL, /* pGetTextExtentExPointI */ NULL, /* pGetTextExtentExPointI */
NULL, /* pGetTextFace */ NULL, /* pGetTextFace */
NULL, /* pGetTextMetrics */ NULL, /* pGetTextMetrics */
NULL, /* pGradientFill */
NULL, /* pIntersectClipRect */ NULL, /* pIntersectClipRect */
NULL, /* pInvertRgn */ NULL, /* pInvertRgn */
NULL, /* pLineTo */ NULL, /* pLineTo */
......
...@@ -115,6 +115,7 @@ struct gdi_dc_funcs ...@@ -115,6 +115,7 @@ struct gdi_dc_funcs
BOOL (*pGetTextExtentExPointI)(PHYSDEV,const WORD*,INT,INT,LPINT,LPINT,LPSIZE); BOOL (*pGetTextExtentExPointI)(PHYSDEV,const WORD*,INT,INT,LPINT,LPINT,LPSIZE);
INT (*pGetTextFace)(PHYSDEV,INT,LPWSTR); INT (*pGetTextFace)(PHYSDEV,INT,LPWSTR);
BOOL (*pGetTextMetrics)(PHYSDEV,TEXTMETRICW*); BOOL (*pGetTextMetrics)(PHYSDEV,TEXTMETRICW*);
BOOL (*pGradientFill)(PHYSDEV,TRIVERTEX*,ULONG,void*,ULONG,ULONG);
INT (*pIntersectClipRect)(PHYSDEV,INT,INT,INT,INT); INT (*pIntersectClipRect)(PHYSDEV,INT,INT,INT,INT);
BOOL (*pInvertRgn)(PHYSDEV,HRGN); BOOL (*pInvertRgn)(PHYSDEV,HRGN);
BOOL (*pLineTo)(PHYSDEV,INT,INT); BOOL (*pLineTo)(PHYSDEV,INT,INT);
...@@ -203,7 +204,7 @@ struct gdi_dc_funcs ...@@ -203,7 +204,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 16 #define WINE_GDI_DRIVER_VERSION 17
static inline PHYSDEV get_physdev_entry_point( PHYSDEV dev, size_t offset ) static inline PHYSDEV get_physdev_entry_point( PHYSDEV dev, size_t offset )
{ {
......
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