From 14dbd34e9e25003fd78957c5a1cc53c6e6635766 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 30 Apr 2003 09:28:15 +0000 Subject: [PATCH] * include/wingdi.h (DC_PEN, DC_BRUSH): Add defines. (SetDCPenColor, SetDCBrushColor): Add prototypes. * lib/gdi32.def (SetDCPenColor, SetDCBrushColor): Add stubs. --- winsup/w32api/ChangeLog | 8 +++++++- winsup/w32api/include/wingdi.h | 8 ++++++++ winsup/w32api/lib/gdi32.def | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 71bc33354..990cc13ca 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,9 @@ +2003-04-30 Danny Smith + + * include/wingdi.h (DC_PEN, DC_BRUSH): Add defines. + (SetDCPenColor, SetDCBrushColor): Add prototypes. + * lib/gdi32.def (SetDCPenColor, SetDCBrushColor): Add stubs. + 2003-04-26 Bang Jun-Young * include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro. @@ -89,7 +95,7 @@ 2003-04-07 Marcel Telka - * include/ddk/winddk.h (KIRQL): Typedef as UCHAR. not ULONG. + * include/ddk/winddk.h (KIRQL): Typedef as UCHAR, not ULONG. 2003-03-30 Hans E. Molin diff --git a/winsup/w32api/include/wingdi.h b/winsup/w32api/include/wingdi.h index 287e9f3d1..5c57f7fd3 100644 --- a/winsup/w32api/include/wingdi.h +++ b/winsup/w32api/include/wingdi.h @@ -796,6 +796,10 @@ extern "C" { #define SYSTEM_FONT 13 #define SYSTEM_FIXED_FONT 16 #define DEFAULT_PALETTE 15 +#if (_WIN32_WINNT >= 0x0500) +#define DC_BRUSH 18 +#define DC_PEN 19 +#endif #define SYSPAL_NOSTATIC 2 #define SYSPAL_STATIC 1 #define SYSPAL_ERROR 0 @@ -2690,6 +2694,10 @@ UINT WINAPI SetBoundsRect(HDC,LPCRECT,UINT); BOOL WINAPI SetBrushOrgEx(HDC,int,int,LPPOINT); BOOL WINAPI SetColorAdjustment(HDC,const COLORADJUSTMENT*); BOOL WINAPI SetColorSpace(HDC,HCOLORSPACE); +#if (_WIN32_WINNT >= 0x0500) +COLORREF WINAPI SetDCBrushColor(HDC,COLORREF); +COLORREF WINAPI SetDCPenColor(HDC,COLORREF); +#endif BOOL WINAPI SetDeviceGammaRamp(HDC,PVOID); UINT WINAPI SetDIBColorTable(HDC,UINT,UINT,const RGBQUAD*); int WINAPI SetDIBits(HDC,HBITMAP,UINT,UINT,PCVOID,const BITMAPINFO*,UINT); diff --git a/winsup/w32api/lib/gdi32.def b/winsup/w32api/lib/gdi32.def index 39c36ec20..927664c95 100644 --- a/winsup/w32api/lib/gdi32.def +++ b/winsup/w32api/lib/gdi32.def @@ -286,6 +286,8 @@ SetBoundsRect@12 SetBrushOrgEx@16 SetColorAdjustment@8 SetColorSpace@8 +SetDCBrushColor@8 +SetDCPenColor@8 SetDIBColorTable@16 SetDIBits@28 SetDIBitsToDevice@48