Improved GetRandomRegion().

oldstable
Eric Kohl 1999-07-31 13:04:36 +00:00 committed by Alexandre Julliard
parent d814bb657a
commit b694b006a4
1 changed files with 8 additions and 1 deletions

View File

@ -2578,7 +2578,9 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count,
*/
INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode)
{
FIXME("(0x%x 0x%x 0x%lx): empty stub!\n",
DC *dc;
FIXME("(0x%lx 0x%lx 0x%lx): empty stub!\n",
hDC, hRgn, dwCode);
switch (dwCode)
@ -2586,6 +2588,11 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode)
case 1:
return GetClipRgn (hDC, hRgn);
case 4:
dc = DC_GetDCPtr (hDC);
CombineRgn (hRgn, dc->w.hVisRgn, 0, RGN_COPY);
return 1;
default:
return -1;
}