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
50205295
Commit
50205295
authored
Jul 06, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore the clip region after GetDCEx in send_erase as if it had been
a BeginPaint.
parent
690115aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
painting.c
dlls/user/painting.c
+1
-1
dce.c
dlls/user/tests/dce.c
+13
-0
No files found.
dlls/user/painting.c
View file @
50205295
...
...
@@ -263,7 +263,7 @@ static BOOL send_erase( HWND hwnd, UINT flags, HRGN client_rgn,
{
if
(
need_erase
&&
hwnd
!=
GetDesktopWindow
())
/* FIXME: mark it as needing erase again */
RedrawWindow
(
hwnd
,
clip_rect
,
0
,
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_NOCHILDREN
);
ReleaseDC
(
hwnd
,
hdc
);
USER_Driver
.
pReleaseDC
(
hwnd
,
hdc
,
TRUE
);
}
}
...
...
dlls/user/tests/dce.c
View file @
50205295
...
...
@@ -340,6 +340,19 @@ static void test_begin_paint(void)
GetClipBox
(
hdc
,
&
rect
);
ok
(
!
(
rect
.
left
>=
10
&&
rect
.
top
>=
10
&&
rect
.
right
<=
20
&&
rect
.
bottom
<=
20
),
"clip box should have been reset %ld,%ld-%ld,%ld
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
RedrawWindow
(
hwnd_owndc
,
NULL
,
0
,
RDW_VALIDATE
|
RDW_NOFRAME
|
RDW_NOERASE
);
SetRect
(
&
rect
,
10
,
10
,
20
,
20
);
RedrawWindow
(
hwnd_owndc
,
&
rect
,
0
,
RDW_INVALIDATE
|
RDW_ERASE
);
ok
(
GetDC
(
hwnd_owndc
)
==
hdc
,
"got different hdc
\n
"
);
SetRectEmpty
(
&
rect
);
GetClipBox
(
hdc
,
&
rect
);
ok
(
!
(
rect
.
left
>=
10
&&
rect
.
top
>=
10
&&
rect
.
right
<=
20
&&
rect
.
bottom
<=
20
),
"clip box should be the whole window %ld,%ld-%ld,%ld
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
RedrawWindow
(
hwnd_owndc
,
NULL
,
0
,
RDW_ERASENOW
);
SetRectEmpty
(
&
rect
);
GetClipBox
(
hdc
,
&
rect
);
ok
(
!
(
rect
.
left
>=
10
&&
rect
.
top
>=
10
&&
rect
.
right
<=
20
&&
rect
.
bottom
<=
20
),
"clip box should still be the whole window %ld,%ld-%ld,%ld
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
/* class DC */
...
...
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