diff --git a/dlls/gdi/gdi32.spec b/dlls/gdi/gdi32.spec index f2ef9f3ccc2..c11edfe084e 100644 --- a/dlls/gdi/gdi32.spec +++ b/dlls/gdi/gdi32.spec @@ -347,6 +347,7 @@ @ stdcall SetBrushOrgEx(long long long ptr) SetBrushOrgEx @ stdcall SetColorAdjustment(long ptr) SetColorAdjustment @ stdcall SetColorSpace(long long) SetColorSpace +@ stdcall SetDCBrushColor(long long) SetDCBrushColor @ stdcall SetDIBColorTable(long long long ptr) SetDIBColorTable @ stdcall SetDIBits(long long long long ptr ptr long) SetDIBits @ stdcall SetDIBitsToDevice(long long long long long long long long long ptr ptr long) SetDIBitsToDevice diff --git a/include/wingdi.h b/include/wingdi.h index 442cc6e71de..c4251a00140 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -3401,6 +3401,7 @@ BOOL WINAPI SetBrushOrgEx(HDC,INT,INT,LPPOINT); BOOL WINAPI SetColorAdjustment(HDC,const COLORADJUSTMENT*); HCOLORSPACE WINAPI SetColorSpace(HDC,HCOLORSPACE); BOOL WINAPI SetDeviceGammaRamp(HDC,LPVOID); +COLORREF WINAPI SetDCBrushColor(HDC,COLORREF); UINT WINAPI SetDIBColorTable(HDC,UINT,UINT,RGBQUAD*); INT WINAPI SetDIBits(HDC,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT); INT WINAPI SetDIBitsToDevice(HDC,INT,INT,DWORD,DWORD,INT, diff --git a/objects/dc.c b/objects/dc.c index fc496b34f6e..4f19464ef48 100644 --- a/objects/dc.c +++ b/objects/dc.c @@ -1360,3 +1360,18 @@ DWORD WINAPI SetLayout(HDC hdc, DWORD layout) SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return 0; } + +/*********************************************************************** + * SetDCBrushColor (GDI32.@) + * + * Sets the current device context (DC) brush color to the specified + * color value. If the device cannot represent the specified color + * value, the color is set to the nearest physical color. + * + */ +COLORREF WINAPI SetDCBrushColor(HDC hdc, COLORREF crColor) +{ + FIXME("(%08x, %08lx): stub\n", hdc, crColor); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return CLR_INVALID; +}