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
1a4a1e53
Commit
1a4a1e53
authored
Sep 11, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Check for the need to flush window surfaces every time a window finishes painting.
parent
43d465f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
painting.c
dlls/user32/painting.c
+1
-3
No files found.
dlls/user32/painting.c
View file @
1a4a1e53
...
...
@@ -805,7 +805,6 @@ void move_window_bits( HWND hwnd, struct window_surface *old_surface,
static
void
update_now
(
HWND
hwnd
,
UINT
rdw_flags
)
{
HWND
child
=
0
;
int
count
=
0
;
/* desktop window never gets WM_PAINT, only WM_ERASEBKGND */
if
(
hwnd
==
GetDesktopWindow
())
erase_now
(
hwnd
,
rdw_flags
|
RDW_NOCHILDREN
);
...
...
@@ -822,10 +821,8 @@ static void update_now( HWND hwnd, UINT rdw_flags )
if
(
!
flags
)
break
;
/* nothing more to do */
SendMessageW
(
child
,
WM_PAINT
,
0
,
0
);
count
++
;
if
(
rdw_flags
&
RDW_NOCHILDREN
)
break
;
}
if
(
count
)
flush_window_surfaces
(
FALSE
);
}
...
...
@@ -936,6 +933,7 @@ BOOL WINAPI EndPaint( HWND hwnd, const PAINTSTRUCT *lps )
if
(
!
lps
)
return
FALSE
;
release_dc
(
hwnd
,
lps
->
hdc
,
TRUE
);
ShowCaret
(
hwnd
);
flush_window_surfaces
(
FALSE
);
return
TRUE
;
}
...
...
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