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
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
painting.c
windows/painting.c
+11
-11
No files found.
windows/painting.c
View file @
8a0808fa
...
...
@@ -471,30 +471,28 @@ 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
();
if
((
wndParent
)
&&
(
wndParent
!=
wndDesktop
)
&&
!
(
wndParent
->
dwStyle
&
WS_CLIPCHILDREN
))
{
HRGN
hrg
;
if
(
wndChild
->
hrgnUpdate
==
1
)
{
RECT
r
;
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
}
else
hrg
=
wndChild
->
hrgnUpdate
;
while
((
wndParent
)
&&
(
wndParent
!=
wndDesktop
)
)
{
if
(
!
(
wndParent
->
dwStyle
&
WS_CLIPCHILDREN
))
{
if
(
wndParent
->
hrgnUpdate
!=
0
)
{
POINT
ptOffset
;
...
...
@@ -519,8 +517,10 @@ void RDW_ValidateParent(WND *wndChild)
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