Commit 3e80fb46 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

- Fix type in GetRandomRegion function.

- Add prototype to header.
parent 1a6fa446
...@@ -504,18 +504,18 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 ) ...@@ -504,18 +504,18 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 )
* *
* NOTES * NOTES
* This function is documented in MSDN online for the case of * 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 * For iCode == 1 it should return the clip region
* 2 " " " the meta region * 2 " " " the meta region
* 3 " " " the intersection of the clip with * 3 " " " the intersection of the clip with
* the meta region (== 'Rao' region). * the meta region (== 'Rao' region).
* *
* See http://www.codeproject.com/gdi/cliprgnguide.asp * 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 */ case SYSRGN: /* == 4 */
{ {
...@@ -543,7 +543,7 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode) ...@@ -543,7 +543,7 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode)
return GetClipRgn (hDC, hRgn); return GetClipRgn (hDC, hRgn);
default: default:
WARN("Unknown dwCode %ld\n", dwCode); WARN("Unknown iCode %d\n", iCode);
return -1; return -1;
} }
......
...@@ -3412,6 +3412,7 @@ INT WINAPI GetPath(HDC,LPPOINT,LPBYTE,INT); ...@@ -3412,6 +3412,7 @@ INT WINAPI GetPath(HDC,LPPOINT,LPBYTE,INT);
COLORREF WINAPI GetPixel(HDC,INT,INT); COLORREF WINAPI GetPixel(HDC,INT,INT);
INT WINAPI GetPixelFormat(HDC); INT WINAPI GetPixelFormat(HDC);
INT WINAPI GetPolyFillMode(HDC); INT WINAPI GetPolyFillMode(HDC);
INT WINAPI GetRandomRgn(HDC,HRGN,INT);
BOOL WINAPI GetRasterizerCaps(LPRASTERIZER_STATUS,UINT); BOOL WINAPI GetRasterizerCaps(LPRASTERIZER_STATUS,UINT);
DWORD WINAPI GetRegionData(HRGN,DWORD,LPRGNDATA); DWORD WINAPI GetRegionData(HRGN,DWORD,LPRGNDATA);
INT WINAPI GetRelAbs(HDC,DWORD); INT WINAPI GetRelAbs(HDC,DWORD);
......
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