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
f80802ed
Commit
f80802ed
authored
Feb 27, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Also test device caps on a released DC.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bab3a3d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
dce.c
dlls/user32/tests/dce.c
+22
-1
No files found.
dlls/user32/tests/dce.c
View file @
f80802ed
...
...
@@ -40,7 +40,7 @@ static void test_dc_attributes(void)
{
HDC
hdc
,
old_hdc
;
HDC
hdcs
[
20
];
INT
i
,
rop
,
def_rop
;
INT
i
,
rop
,
def_rop
,
caps
;
BOOL
found_dc
;
/* test cache DC */
...
...
@@ -118,8 +118,29 @@ static void test_dc_attributes(void)
ok
(
rop
==
0
,
"got %d
\n
"
,
rop
);
rop
=
GetROP2
(
old_hdc
);
ok
(
rop
==
0
,
"got %d
\n
"
,
rop
);
caps
=
GetDeviceCaps
(
old_hdc
,
HORZRES
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
old_hdc
,
VERTRES
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
old_hdc
,
NUMCOLORS
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
ok
(
WindowFromDC
(
old_hdc
)
==
0
,
"wrong window
\n
"
);
hdc
=
GetDC
(
0
);
caps
=
GetDeviceCaps
(
hdc
,
HORZRES
);
ok
(
caps
!=
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
hdc
,
VERTRES
);
ok
(
caps
!=
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
hdc
,
NUMCOLORS
);
ok
(
caps
!=
0
,
"got %d
\n
"
,
caps
);
ReleaseDC
(
0
,
hdc
);
caps
=
GetDeviceCaps
(
hdc
,
HORZRES
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
hdc
,
VERTRES
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
caps
=
GetDeviceCaps
(
hdc
,
NUMCOLORS
);
ok
(
caps
==
0
,
"got %d
\n
"
,
caps
);
/* test own DC */
hdc
=
GetDC
(
hwnd_owndc
);
...
...
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