From 3e80fb4611799afe5d20250fa80a22d4e92fd64f Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 20 Aug 2004 19:26:28 +0000 Subject: [PATCH] - Fix type in GetRandomRegion function. - Add prototype to header. --- dlls/gdi/clipping.c | 16 ++++++++-------- include/wingdi.h | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dlls/gdi/clipping.c b/dlls/gdi/clipping.c index 08382a4b6a7..c39835d86b7 100644 --- a/dlls/gdi/clipping.c +++ b/dlls/gdi/clipping.c @@ -504,18 +504,18 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 ) * * NOTES * This function is documented in MSDN online for the case of - * dwCode == SYSRGN (4). + * iCode == SYSRGN (4). * - * For dwCode == 1 it should return the clip region - * 2 " " " the meta region - * 3 " " " the intersection of the clip with - * the meta region (== 'Rao' region). + * For iCode == 1 it should return the clip region + * 2 " " " the meta region + * 3 " " " the intersection of the clip with + * the meta region (== 'Rao' region). * * See http://www.codeproject.com/gdi/cliprgnguide.asp */ -INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode) +INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, INT iCode) { - switch (dwCode) + switch (iCode) { case SYSRGN: /* == 4 */ { @@ -543,7 +543,7 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode) return GetClipRgn (hDC, hRgn); default: - WARN("Unknown dwCode %ld\n", dwCode); + WARN("Unknown iCode %d\n", iCode); return -1; } diff --git a/include/wingdi.h b/include/wingdi.h index 87f07d7ee72..caa5fbb7b4e 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -3412,6 +3412,7 @@ INT WINAPI GetPath(HDC,LPPOINT,LPBYTE,INT); COLORREF WINAPI GetPixel(HDC,INT,INT); INT WINAPI GetPixelFormat(HDC); INT WINAPI GetPolyFillMode(HDC); +INT WINAPI GetRandomRgn(HDC,HRGN,INT); BOOL WINAPI GetRasterizerCaps(LPRASTERIZER_STATUS,UINT); DWORD WINAPI GetRegionData(HRGN,DWORD,LPRGNDATA); INT WINAPI GetRelAbs(HDC,DWORD);