Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jason Beetham
wine
Commits
a961c445
Commit
a961c445
authored
25 years ago
by
Yuxi Zhang
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Tried to fix the code for SetWindowPos to erase the background
properly.
parent
43ac3d6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
windows/winpos.c
+13
-26
13 additions, 26 deletions
windows/winpos.c
with
13 additions
and
26 deletions
windows/winpos.c
+
13
−
26
View file @
a961c445
...
...
@@ -2838,42 +2838,29 @@ 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 */
/* Use PAINT_RedrawWindow to explicitly force an invalidation of the window,
its parent and sibling and so on, and then erase the parent window
back ground if the parent is either a top-level window or its parent's parent
is top-level window. Rely on the system to repaint other affected
windows later on. */
if
(
uFlags
&
SWP_EX_PAINTSELF
)
{
PAINT_RedrawWindow
(
wndPtr
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_FRAME
|
((
winpos
.
flags
&
SWP_DEFERERASE
)
?
0
:
RDW_
E
RA
SENOW
)
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_XYWINDOW
|
RDW_EX_USEHRGN
);
PAINT_RedrawWindow
(
wndPtr
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_
F
RA
ME
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_XYWINDOW
|
RDW_EX_USEHRGN
);
}
else
{
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_ERASE
NOW
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_USEHRGN
);
}
RDW_ERASE
|
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
if
(
wndPtr
->
parent
==
wndTemp
||
wndPtr
->
parent
->
parent
==
wndTemp
)
{
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
(
visRgn
==
1
)
?
0
:
visRgn
,
RDW_ERASE
|
RDW_INVALIDATE
|
RDW_ALLCHILDREN
,
RDW_EX_USEHRGN
);
UpdateWindow
(
wndPtr
->
parent
->
hwndSelf
);
}
PAINT_RedrawWindow
(
wndPtr
->
parent
->
hwndSelf
,
NULL
,
0
,
RDW_ERASENOW
|
RDW_NOCHILDREN
,
0
);
}
}
if
(
visRgn
!=
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment