Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8a0808fa
Commit
8a0808fa
authored
Apr 23, 2000
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make RDW_ValidateParent() modify the update region of all parents, not
just the direct parent.
parent
69277bba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
painting.c
windows/painting.c
+36
-36
No files found.
windows/painting.c
View file @
8a0808fa
...
...
@@ -471,56 +471,56 @@ END:
/***********************************************************************
* RDW_ValidateParent [RDW_UpdateRgns() helper]
*
* Validate the portions of parent that are covered by a validated child
* Validate the portions of parent
s
that are covered by a validated child
* wndPtr = child
*/
void
RDW_ValidateParent
(
WND
*
wndChild
)
{
WND
*
wndParent
=
WIN_LockWndPtr
(
wndChild
->
parent
);
WND
*
wndDesktop
=
WIN_GetDesktop
();
HRGN
hrg
;
if
((
wndParent
)
&&
(
wndParent
!=
wndDesktop
)
&&
!
(
wndParent
->
dwStyle
&
WS_CLIPCHILDREN
))
{
HRGN
hrg
;
if
(
wndChild
->
hrgnUpdate
==
1
)
{
RECT
r
;
r
.
left
=
0
;
r
.
top
=
0
;
r
.
right
=
wndChild
->
rectWindow
.
right
-
wndChild
->
rectWindow
.
left
;
r
.
bottom
=
wndChild
->
rectWindow
.
bottom
-
wndChild
->
rectWindow
.
top
;
hrg
=
CreateRectRgnIndirect
(
&
r
);
}
else
hrg
=
wndChild
->
hrgnUpdate
;
if
(
wndParent
->
hrgnUpdate
!=
0
)
if
(
wndChild
->
hrgnUpdate
==
1
)
{
RECT
r
;
r
.
left
=
0
;
r
.
top
=
0
;
r
.
right
=
wndChild
->
rectWindow
.
right
-
wndChild
->
rectWindow
.
left
;
r
.
bottom
=
wndChild
->
rectWindow
.
bottom
-
wndChild
->
rectWindow
.
top
;
hrg
=
CreateRectRgnIndirect
(
&
r
);
}
else
hrg
=
wndChild
->
hrgnUpdate
;
while
((
wndParent
)
&&
(
wndParent
!=
wndDesktop
)
)
{
if
(
!
(
wndParent
->
dwStyle
&
WS_CLIPCHILDREN
))
{
POINT
ptOffset
;
RECT
rect
,
rectParent
;
if
(
wndParent
->
hrgnUpdate
==
1
)
if
(
wndParent
->
hrgnUpdate
!=
0
)
{
RECT
r
;
POINT
ptOffset
;
RECT
rect
,
rectParent
;
if
(
wndParent
->
hrgnUpdate
==
1
)
{
RECT
r
;
r
.
left
=
0
;
r
.
top
=
0
;
r
.
right
=
wndParent
->
rectWindow
.
right
-
wndParent
->
rectWindow
.
left
;
r
.
bottom
=
wndParent
->
rectWindow
.
bottom
-
wndParent
->
rectWindow
.
top
;
r
.
left
=
0
;
r
.
top
=
0
;
r
.
right
=
wndParent
->
rectWindow
.
right
-
wndParent
->
rectWindow
.
left
;
r
.
bottom
=
wndParent
->
rectWindow
.
bottom
-
wndParent
->
rectWindow
.
top
;
wndParent
->
hrgnUpdate
=
CreateRectRgnIndirect
(
&
r
);
wndParent
->
hrgnUpdate
=
CreateRectRgnIndirect
(
&
r
);
}
/* we must offset the child region by the offset of the child rect in the parent */
GetWindowRect
(
wndParent
->
hwndSelf
,
&
rectParent
);
GetWindowRect
(
wndChild
->
hwndSelf
,
&
rect
);
ptOffset
.
x
=
rect
.
left
-
rectParent
.
left
;
ptOffset
.
y
=
rect
.
top
-
rectParent
.
top
;
OffsetRgn
(
hrg
,
ptOffset
.
x
,
ptOffset
.
y
);
CombineRgn
(
wndParent
->
hrgnUpdate
,
wndParent
->
hrgnUpdate
,
hrg
,
RGN_DIFF
);
OffsetRgn
(
hrg
,
-
ptOffset
.
x
,
-
ptOffset
.
y
);
}
/* we must offset the child region by the offset of the child rect in the parent */
GetWindowRect
(
wndParent
->
hwndSelf
,
&
rectParent
);
GetWindowRect
(
wndChild
->
hwndSelf
,
&
rect
);
ptOffset
.
x
=
rect
.
left
-
rectParent
.
left
;
ptOffset
.
y
=
rect
.
top
-
rectParent
.
top
;
OffsetRgn
(
hrg
,
ptOffset
.
x
,
ptOffset
.
y
);
CombineRgn
(
wndParent
->
hrgnUpdate
,
wndParent
->
hrgnUpdate
,
hrg
,
RGN_DIFF
);
OffsetRgn
(
hrg
,
-
ptOffset
.
x
,
-
ptOffset
.
y
);
}
if
(
hrg
!=
wndChild
->
hrgnUpdate
)
DeleteObject
(
hrg
);
WIN_UpdateWndPtr
(
&
wndParent
,
wndParent
->
parent
);
}
if
(
hrg
!=
wndChild
->
hrgnUpdate
)
DeleteObject
(
hrg
);
WIN_ReleaseWndPtr
(
wndParent
);
WIN_ReleaseDesktop
();
}
...
...
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