Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8b47ec24
Commit
8b47ec24
authored
Sep 27, 1999
by
Richard Cohen
Committed by
Alexandre Julliard
Sep 27, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetRandomRgn.
parent
70810d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
12 deletions
+26
-12
region.c
objects/region.c
+26
-12
No files found.
objects/region.c
View file @
8b47ec24
...
...
@@ -2574,26 +2574,40 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count,
* GetRandomRgn [GDI32.215]
*
* NOTES
* This function is
UNDOCUMENTED, it isn't even in the header file.
* This function is
documented in MSDN online
*/
INT
WINAPI
GetRandomRgn
(
HDC
hDC
,
HRGN
hRgn
,
DWORD
dwCode
)
{
DC
*
dc
;
FIXME
(
"(%08x %08x %lx): empty stub!
\n
"
,
hDC
,
hRgn
,
dwCode
);
switch
(
dwCode
)
{
case
1
:
return
GetClipRgn
(
hDC
,
hRgn
);
case
4
:
dc
=
DC_GetDCPtr
(
hDC
)
;
case
4
:
/* == SYSRGN ? */
{
DC
*
dc
=
DC_GetDCPtr
(
hDC
);
OSVERSIONINFOA
vi
;
POINT
org
;
CombineRgn
(
hRgn
,
dc
->
w
.
hVisRgn
,
0
,
RGN_COPY
);
/*
* On Windows NT/2000,
* the region returned is in screen coordinates.
* On Windows 95/98,
* the region returned is in window coordinates
*/
vi
.
dwOSVersionInfoSize
=
sizeof
(
vi
);
if
(
GetVersionExA
(
&
vi
)
&&
vi
.
dwPlatformId
==
VER_PLATFORM_WIN32_NT
)
GetDCOrgEx
(
hDC
,
&
org
);
else
org
.
x
=
org
.
y
=
0
;
org
.
x
-=
dc
->
w
.
DCOrgX
;
org
.
y
-=
dc
->
w
.
DCOrgY
;
OffsetRgn
(
hRgn
,
org
.
x
,
org
.
y
);
return
1
;
}
/* case 1:
return GetClipRgn (hDC, hRgn);
*/
default:
WARN
(
"Unknown dwCode %ld
\n
"
,
dwCode
);
return
-
1
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment