Commit bd699e5e authored by Vincent Béron's avatar Vincent Béron Committed by Alexandre Julliard

Implemented GetDCPenColor and GetDCBrushColor.

parent 636f29d8
......@@ -198,7 +198,9 @@
@ stdcall GetColorSpace(long)
@ stdcall GetCurrentObject(long long)
@ stdcall GetCurrentPositionEx(long ptr)
@ stdcall GetDCBrushColor(long)
@ stdcall GetDCOrgEx(long ptr)
@ stdcall GetDCPenColor(long)
@ stdcall GetDIBColorTable(long long long ptr)
@ stdcall GetDIBits(long long long long ptr ptr long)
@ stdcall GetDeviceCaps(long long)
......@@ -412,8 +414,6 @@
@ extern pfnRealizePalette
@ extern pfnSelectPalette
@ stub pstackConnect
@ stub GetDCBrushColor #stdcall (long)
@ stub GetDCPenColor #stdcall (long)
################################################################
# Wine extensions: Win16 functions that are needed by other dlls
......
......@@ -1459,6 +1459,29 @@ DWORD WINAPI SetLayout(HDC hdc, DWORD layout)
}
/***********************************************************************
* GetDCBrushColor (GDI32.@)
*
* Retrieves the current brush color for the specified device
* context (DC).
*
*/
COLORREF WINAPI GetDCBrushColor(HDC hdc)
{
DC *dc;
COLORREF dcBrushColor = CLR_INVALID;
TRACE("hdc(%p)\n", hdc);
dc = DC_GetDCPtr( hdc );
if (dc)
{
dcBrushColor = dc->dcBrushColor;
}
return dcBrushColor;
}
/***********************************************************************
* SetDCBrushColor (GDI32.@)
*
* Sets the current device context (DC) brush color to the specified
......@@ -1499,6 +1522,29 @@ COLORREF WINAPI SetDCBrushColor(HDC hdc, COLORREF crColor)
}
/***********************************************************************
* GetDCPenColor (GDI32.@)
*
* Retrieves the current pen color for the specified device
* context (DC).
*
*/
COLORREF WINAPI GetDCPenColor(HDC hdc)
{
DC *dc;
COLORREF dcPenColor = CLR_INVALID;
TRACE("hdc(%p)\n", hdc);
dc = DC_GetDCPtr( hdc );
if (dc)
{
dcPenColor = dc->dcPenColor;
}
return dcPenColor;
}
/***********************************************************************
* SetDCPenColor (GDI32.@)
*
* Sets the current device context (DC) pen color to the specified
......
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