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
b8830034
Commit
b8830034
authored
Jun 13, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not reuse a passed CONST RECT * pointer.
parent
a7617a05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
region.c
objects/region.c
+12
-11
No files found.
objects/region.c
View file @
b8830034
...
...
@@ -2588,19 +2588,21 @@ HRGN WINAPI GetRandomRgn(DWORD dwArg1, DWORD dwArg2, DWORD dwArg3)
*/
static
BOOL
REGION_CropAndOffsetRegion
(
const
POINT
*
off
,
const
RECT
*
rect
,
WINEREGION
*
rgnSrc
,
WINEREGION
*
rgnDst
)
{
if
(
!
rect
)
/* just copy and offset */
{
RECT
*
xrect
;
if
(
rgnDst
==
rgnSrc
)
{
if
(
off
->
x
||
off
->
y
)
rect
=
rgnDst
->
rects
;
x
rect
=
rgnDst
->
rects
;
else
return
TRUE
;
}
else
rect
=
HeapReAlloc
(
SystemHeap
,
0
,
rgnDst
->
rects
,
x
rect
=
HeapReAlloc
(
SystemHeap
,
0
,
rgnDst
->
rects
,
rgnSrc
->
size
*
sizeof
(
RECT
));
if
(
rect
)
if
(
x
rect
)
{
INT
i
;
...
...
@@ -2611,18 +2613,17 @@ static BOOL REGION_CropAndOffsetRegion(const POINT* off, const RECT *rect, WINER
{
for
(
i
=
0
;
i
<
rgnDst
->
numRects
;
i
++
)
{
rect
[
i
].
left
=
rgnSrc
->
rects
[
i
].
left
+
off
->
x
;
rect
[
i
].
right
=
rgnSrc
->
rects
[
i
].
right
+
off
->
x
;
rect
[
i
].
top
=
rgnSrc
->
rects
[
i
].
top
+
off
->
y
;
rect
[
i
].
bottom
=
rgnSrc
->
rects
[
i
].
bottom
+
off
->
y
;
x
rect
[
i
].
left
=
rgnSrc
->
rects
[
i
].
left
+
off
->
x
;
x
rect
[
i
].
right
=
rgnSrc
->
rects
[
i
].
right
+
off
->
x
;
x
rect
[
i
].
top
=
rgnSrc
->
rects
[
i
].
top
+
off
->
y
;
x
rect
[
i
].
bottom
=
rgnSrc
->
rects
[
i
].
bottom
+
off
->
y
;
}
OffsetRect
(
&
rgnDst
->
extents
,
off
->
x
,
off
->
y
);
}
else
memcpy
(
rect
,
rgnSrc
->
rects
,
rgnDst
->
numRects
*
sizeof
(
RECT
));
rgnDst
->
rects
=
rect
;
}
else
memcpy
(
xrect
,
rgnSrc
->
rects
,
rgnDst
->
numRects
*
sizeof
(
RECT
));
rgnDst
->
rects
=
xrect
;
}
else
return
FALSE
;
}
else
if
(
IsRectEmpty
(
rect
)
||
!
EXTENTCHECK
(
rect
,
&
rgnSrc
->
extents
)
)
...
...
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