mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Improved GetRandomRegion().
This commit is contained in:
parent
d814bb657a
commit
b694b006a4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user