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
4d7041a6
Commit
4d7041a6
authored
Aug 18, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly check for CS_PARENTDC in WM_ERASEBKGND handling.
parent
96c514bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
defwnd.c
windows/defwnd.c
+7
-4
No files found.
windows/defwnd.c
View file @
4d7041a6
...
@@ -461,10 +461,13 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
...
@@ -461,10 +461,13 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
HBRUSH
hbr
=
GetClassLongW
(
wndPtr
->
hwndSelf
,
GCL_HBRBACKGROUND
);
HBRUSH
hbr
=
GetClassLongW
(
wndPtr
->
hwndSelf
,
GCL_HBRBACKGROUND
);
if
(
!
hbr
)
return
0
;
if
(
!
hbr
)
return
0
;
/* GetClientRect used to be GetClipBox, but it is not what
if
(
GetClassLongW
(
wndPtr
->
hwndSelf
,
GCL_STYLE
)
&
CS_PARENTDC
)
* Windows does, and it breaks badly with CS_PARENTDC */
{
GetClientRect
(
wndPtr
->
hwndSelf
,
&
rect
);
/* can't use GetClipBox with a parent DC or we fill the whole parent */
DPtoLP
(
hdc
,
(
LPPOINT
)
&
rect
,
2
);
GetClientRect
(
wndPtr
->
hwndSelf
,
&
rect
);
DPtoLP
(
hdc
,
(
LPPOINT
)
&
rect
,
2
);
}
else
GetClipBox
(
hdc
,
&
rect
);
FillRect
(
hdc
,
&
rect
,
hbr
);
FillRect
(
hdc
,
&
rect
,
hbr
);
return
1
;
return
1
;
}
}
...
...
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