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
149cbb1b
Commit
149cbb1b
authored
Aug 23, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Validate the parents every time we paint a window instead of only on RDW_UPDATENOW.
parent
0c4f152e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
painting.c
dlls/user32/painting.c
+3
-0
window.c
server/window.c
+2
-7
No files found.
dlls/user32/painting.c
View file @
149cbb1b
...
@@ -160,6 +160,9 @@ static BOOL redraw_window_rects( HWND hwnd, UINT flags, const RECT *rects, UINT
...
@@ -160,6 +160,9 @@ static BOOL redraw_window_rects( HWND hwnd, UINT flags, const RECT *rects, UINT
{
{
BOOL
ret
;
BOOL
ret
;
if
(
!
(
flags
&
(
RDW_INVALIDATE
|
RDW_VALIDATE
|
RDW_INTERNALPAINT
|
RDW_NOINTERNALPAINT
)))
return
TRUE
;
/* nothing to do */
SERVER_START_REQ
(
redraw_window
)
SERVER_START_REQ
(
redraw_window
)
{
{
req
->
window
=
hwnd
;
req
->
window
=
hwnd
;
...
...
server/window.c
View file @
149cbb1b
...
@@ -1051,7 +1051,7 @@ static void validate_children( struct window *win )
...
@@ -1051,7 +1051,7 @@ static void validate_children( struct window *win )
}
}
/* validate the update region of a window on all parents; helper for
redraw_window
*/
/* validate the update region of a window on all parents; helper for
get_update_region
*/
static
void
validate_parents
(
struct
window
*
child
)
static
void
validate_parents
(
struct
window
*
child
)
{
{
int
offset_x
=
0
,
offset_y
=
0
;
int
offset_x
=
0
,
offset_y
=
0
;
...
@@ -1137,12 +1137,6 @@ static void redraw_window( struct window *win, struct region *region, int frame,
...
@@ -1137,12 +1137,6 @@ static void redraw_window( struct window *win, struct region *region, int frame,
inc_window_paint_count
(
win
,
-
1
);
inc_window_paint_count
(
win
,
-
1
);
}
}
if
(
flags
&
RDW_UPDATENOW
)
{
validate_parents
(
win
);
flags
&=
~
RDW_UPDATENOW
;
}
/* now process children recursively */
/* now process children recursively */
if
(
flags
&
RDW_NOCHILDREN
)
return
;
if
(
flags
&
RDW_NOCHILDREN
)
return
;
...
@@ -1982,6 +1976,7 @@ DECL_HANDLER(get_update_region)
...
@@ -1982,6 +1976,7 @@ DECL_HANDLER(get_update_region)
if
(
reply
->
flags
&
(
UPDATE_PAINT
|
UPDATE_INTERNALPAINT
))
/* validate everything */
if
(
reply
->
flags
&
(
UPDATE_PAINT
|
UPDATE_INTERNALPAINT
))
/* validate everything */
{
{
validate_parents
(
win
);
validate_whole_window
(
win
);
validate_whole_window
(
win
);
}
}
else
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