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
3735f36d
Commit
3735f36d
authored
Jul 18, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fetch client and window rectangles in a single call.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27dc1d05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
painting.c
dlls/user32/painting.c
+5
-10
No files found.
dlls/user32/painting.c
View file @
3735f36d
...
...
@@ -652,12 +652,12 @@ static HRGN send_ncpaint( HWND hwnd, HWND *child, UINT *flags )
if
(
whole_rgn
)
{
RECT
client
,
update
;
RECT
client
,
window
,
update
;
INT
type
;
/* check if update rgn overlaps with nonclient area */
type
=
GetRgnBox
(
whole_rgn
,
&
update
);
WIN_GetRectangles
(
hwnd
,
COORDS_SCREEN
,
0
,
&
client
);
WIN_GetRectangles
(
hwnd
,
COORDS_SCREEN
,
&
window
,
&
client
);
if
((
*
flags
&
UPDATE_NONCLIENT
)
||
update
.
left
<
client
.
left
||
update
.
top
<
client
.
top
||
...
...
@@ -667,15 +667,10 @@ static HRGN send_ncpaint( HWND hwnd, HWND *child, UINT *flags )
CombineRgn
(
client_rgn
,
client_rgn
,
whole_rgn
,
RGN_AND
);
/* check if update rgn contains complete nonclient area */
if
(
type
==
SIMPLEREGION
)
if
(
type
==
SIMPLEREGION
&&
EqualRect
(
&
window
,
&
update
)
)
{
RECT
window
;
GetWindowRect
(
hwnd
,
&
window
);
if
(
EqualRect
(
&
window
,
&
update
))
{
DeleteObject
(
whole_rgn
);
whole_rgn
=
(
HRGN
)
1
;
}
DeleteObject
(
whole_rgn
);
whole_rgn
=
(
HRGN
)
1
;
}
}
else
...
...
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