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
0e0f62f2
Commit
0e0f62f2
authored
Feb 24, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repaint the non-client area to work around broken WM_PAINT handlers
also when doing a synchronous update with RDW_UPDATENOW.
parent
db69dcb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
painting.c
dlls/user/painting.c
+18
-2
No files found.
dlls/user/painting.c
View file @
0e0f62f2
...
...
@@ -326,7 +326,7 @@ static void erase_now( HWND hwnd, UINT rdw_flags )
*/
static
void
update_now
(
HWND
hwnd
,
UINT
rdw_flags
)
{
HWND
child
;
HWND
prev
=
0
,
child
;
/* desktop window never gets WM_PAINT, only WM_ERASEBKGND */
if
(
hwnd
==
GetDesktopWindow
())
erase_now
(
hwnd
,
rdw_flags
|
RDW_NOCHILDREN
);
...
...
@@ -342,8 +342,24 @@ static void update_now( HWND hwnd, UINT rdw_flags )
if
(
!
get_update_flags
(
hwnd
,
&
child
,
&
flags
))
break
;
if
(
!
flags
)
break
;
/* nothing more to do */
SendMessageW
(
child
,
WM_PAINT
,
0
,
0
);
if
(
child
==
prev
)
/* same window again, didn't get repainted properly */
{
UINT
erase_flags
=
UPDATE_NONCLIENT
|
UPDATE_ERASE
|
UPDATE_NOCHILDREN
;
HRGN
hrgn
;
RECT
rect
;
TRACE
(
"%p not repainted properly, erasing
\n
"
,
child
);
if
((
hrgn
=
send_ncpaint
(
child
,
NULL
,
&
erase_flags
)))
{
send_erase
(
child
,
erase_flags
,
hrgn
,
&
rect
,
NULL
);
DeleteObject
(
hrgn
);
}
}
else
{
prev
=
child
;
SendMessageW
(
child
,
WM_PAINT
,
0
,
0
);
}
if
(
rdw_flags
&
RDW_NOCHILDREN
)
break
;
}
}
...
...
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