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
09791702
Commit
09791702
authored
Dec 05, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In RDW_ValidateParent, get rid of the parent update region if it is
empty after the validation, to avoid a useless WM_PAINT.
parent
46f11eda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
painting.c
windows/painting.c
+9
-1
No files found.
windows/painting.c
View file @
09791702
...
...
@@ -379,7 +379,15 @@ static void RDW_ValidateParent(WND *wndChild)
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
);
if
(
CombineRgn
(
wndParent
->
hrgnUpdate
,
wndParent
->
hrgnUpdate
,
hrg
,
RGN_DIFF
)
==
NULLREGION
)
{
/* the update region has become empty */
DeleteObject
(
wndParent
->
hrgnUpdate
);
wndParent
->
hrgnUpdate
=
0
;
wndParent
->
flags
&=
~
WIN_NEEDS_ERASEBKGND
;
if
(
!
(
wndParent
->
flags
&
WIN_INTERNAL_PAINT
)
)
add_paint_count
(
wndParent
->
hwndSelf
,
-
1
);
}
OffsetRgn
(
hrg
,
-
ptOffset
.
x
,
-
ptOffset
.
y
);
}
}
...
...
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