Commit b694b006 authored by Eric Kohl's avatar Eric Kohl Committed by Alexandre Julliard

Improved GetRandomRegion().

parent d814bb65
...@@ -2578,7 +2578,9 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count, ...@@ -2578,7 +2578,9 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count,
*/ */
INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode) 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); hDC, hRgn, dwCode);
switch (dwCode) switch (dwCode)
...@@ -2586,6 +2588,11 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode) ...@@ -2586,6 +2588,11 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, DWORD dwCode)
case 1: case 1:
return GetClipRgn (hDC, hRgn); return GetClipRgn (hDC, hRgn);
case 4:
dc = DC_GetDCPtr (hDC);
CombineRgn (hRgn, dc->w.hVisRgn, 0, RGN_COPY);
return 1;
default: default:
return -1; return -1;
} }
......
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