Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
8e35d65f
Commit
8e35d65f
authored
Jul 04, 1999
by
Yuxi Zhang
Committed by
Alexandre Julliard
Jul 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in SetWindowPos to prevent parent from erasing its child
painting area when parent window and child window don't have WS_CLIPCHILDREN and WS_CLIPSIBLINGS.
parent
526ffdc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
winpos.c
windows/winpos.c
+28
-3
No files found.
windows/winpos.c
View file @
8e35d65f
...
...
@@ -2821,6 +2821,11 @@ Pos: /* -----------------------------------------------------------------------
{
if
(
!
(
winpos
.
flags
&
SWP_NOREDRAW
)
)
{
if
(
wndPtr
->
parent
==
wndTemp
)
{
/* Desktop does not receive wm_paint message so we use RDW_ERASENOW to erase the
the desktop window */
if
(
uFlags
&
SWP_EX_PAINTSELF
)
{
PAINT_RedrawWindow
(
wndPtr
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_FRAME
|
...
...
@@ -2829,9 +2834,29 @@ Pos: /* -----------------------------------------------------------------------
}
else
{
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
((
winpos
.
flags
&
SWP_DEFERERASE
)
?
0
:
RDW_ERASENOW
)
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_USEHRGN
);
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_ERASENOW
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_USEHRGN
);
}
}
else
{
if
(
uFlags
&
SWP_EX_PAINTSELF
)
{
/* Use PAINT_RedrawWindow to explicitly force an invalidation of the window,
its parent and sibling and so on, and then update the parent window,
the non-top-level window. Rely on the system to repaint other affected
windows later on. */
PAINT_RedrawWindow
(
wndPtr
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_FRAME
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_XYWINDOW
|
RDW_EX_USEHRGN
);
}
else
{
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_USEHRGN
);
UpdateWindow
(
wndPtr
->
parent
->
hwndSelf
);
}
}
}
if
(
visRgn
!=
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