Fixed the prototype of CreateDIBPatternBrushPt

This commit is contained in:
Francois Gouget 1998-12-26 11:57:38 +00:00 committed by Alexandre Julliard
parent f324e5e92c
commit 815d320795
2 changed files with 12 additions and 2 deletions

View File

@ -1943,14 +1943,20 @@ typedef struct _RGNDATA {
char Buffer[1];
} RGNDATA,*PRGNDATA,*LPRGNDATA;
typedef BOOL16 (CALLBACK* ABORTPROC16)(HDC16, INT16);
typedef BOOL32 (CALLBACK* ABORTPROC32)(HDC32, INT32);
DECL_WINELIB_TYPE(ABORTPROC)
#pragma pack(4)
/* Declarations for functions that exist only in Win32 */
BOOL32 WINAPI AngleArc32(HDC32, INT32, INT32, DWORD, FLOAT, FLOAT);
#define AngleArc WINELIB_NAME(AngleArc)
BOOL32 WINAPI ArcTo32(HDC32, INT32, INT32, INT32, INT32, INT32, INT32, INT32, INT32);
HENHMETAFILE32 WINAPI CloseEnhMetaFile32(HDC32);
HBRUSH32 WINAPI CreateDIBPatternBrushPt(BITMAPINFO*,UINT32);
#define CloseEnhMetaFile WINELIB_NAME(CloseEnhMetaFile)
HBRUSH32 WINAPI CreateDIBPatternBrushPt(const void*,UINT32);
HDC32 WINAPI CreateEnhMetaFile32A(HDC32,LPCSTR,const RECT32*,LPCSTR);
HDC32 WINAPI CreateEnhMetaFile32W(HDC32,LPCWSTR,const RECT32*,LPCWSTR);
#define CreateEnhMetaFile WINELIB_NAME_AW(CreateEnhMetaFile)
@ -1960,6 +1966,7 @@ BOOL16 WINAPI FastWindowFrame(HDC16,const RECT16*,INT16,INT16,DWORD);
UINT16 WINAPI GDIRealizePalette(HDC16);
HPALETTE16 WINAPI GDISelectPalette(HDC16,HPALETTE16,WORD);
BOOL32 WINAPI GdiComment32(HDC32,UINT32,const BYTE *);
#define GdiComment WINELIB_NAME(GdiComment)
DWORD WINAPI GetBitmapDimension(HBITMAP16);
DWORD WINAPI GetBrushOrg(HDC16);
BOOL32 WINAPI GetCharABCWidthsFloat32A(HDC32,UINT32,UINT32,LPABCFLOAT);
@ -1969,6 +1976,7 @@ BOOL32 WINAPI GetCharWidthFloat32A(HDC32,UINT32,UINT32,PFLOAT);
BOOL32 WINAPI GetCharWidthFloat32W(HDC32,UINT32,UINT32,PFLOAT);
#define GetCharWidthFloat WINELIB_NAME_AW(GetCharWidthFloat)
BOOL32 WINAPI GetColorAdjustment32(HDC32, LPCOLORADJUSTMENT);
#define GetColorAdjustment WINELIB_NAME(GetColorAdjustment)
HFONT16 WINAPI GetCurLogFont(HDC16);
DWORD WINAPI GetCurrentPosition(HDC16);
DWORD WINAPI GetDCHook(HDC16,FARPROC16*);
@ -2614,6 +2622,7 @@ COLORREF WINAPI SetPixel16(HDC16,INT16,INT16,COLORREF);
COLORREF WINAPI SetPixel32(HDC32,INT32,INT32,COLORREF);
#define SetPixel WINELIB_NAME(SetPixel)
BOOL32 WINAPI SetPixelV32(HDC32,INT32,INT32,COLORREF);
#define SetPixelV WINELIB_NAME(SetPixelV)
BOOL32 WINAPI SetPixelFormat(HDC32,int,const PIXELFORMATDESCRIPTOR*);
INT16 WINAPI SetPolyFillMode16(HDC16,INT16);
INT32 WINAPI SetPolyFillMode32(HDC32,INT32);

View File

@ -194,10 +194,11 @@ HBRUSH32 WINAPI CreateDIBPatternBrush32(
*
*/
HBRUSH32 WINAPI CreateDIBPatternBrushPt(
BITMAPINFO *info, /* Pointer to a BITMAPINFO structure */
const void* data, /* Pointer to a BITMAPINFO structure followed by more data */
UINT32 coloruse /* Specifies color format, if provided */
)
{
BITMAPINFO *info=(BITMAPINFO*)data;
LOGBRUSH32 logbrush = { BS_DIBPATTERN, coloruse, 0 };
BITMAPINFO *newInfo;
INT32 size;