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
57b38565
Commit
57b38565
authored
Apr 27, 2022
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Trace monitor information with 'monitor info'.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c6c3cdc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
monitor.c
dlls/user32/tests/monitor.c
+29
-0
No files found.
dlls/user32/tests/monitor.c
View file @
57b38565
...
@@ -2530,9 +2530,38 @@ static void test_display_dc(void)
...
@@ -2530,9 +2530,38 @@ static void test_display_dc(void)
}
}
}
}
BOOL
CALLBACK
MonitorEnumProc
(
HMONITOR
hMonitor
,
HDC
hdcMonitor
,
LPRECT
lprcMonitor
,
LPARAM
dwData
)
{
MONITORINFOEXW
info
;
static
int
index
;
info
.
cbSize
=
sizeof
(
info
);
if
(
GetMonitorInfoW
(
hMonitor
,
(
MONITORINFO
*
)
&
info
))
{
printf
(
"Monitor %d %7s [%02lx] %s %s
\n
"
,
index
,
(
info
.
dwFlags
&
MONITORINFOF_PRIMARY
)
?
"primary"
:
""
,
info
.
dwFlags
,
wine_dbgstr_rect
(
&
info
.
rcMonitor
),
wine_dbgstr_w
(
info
.
szDevice
));
}
index
++
;
return
TRUE
;
}
START_TEST
(
monitor
)
START_TEST
(
monitor
)
{
{
char
**
myARGV
;
int
myARGC
=
winetest_get_mainargs
(
&
myARGV
);
init_function_pointers
();
init_function_pointers
();
if
(
myARGC
>=
3
&&
strcmp
(
myARGV
[
2
],
"info"
)
==
0
)
{
printf
(
"Monitor information:
\n
"
);
EnumDisplayMonitors
(
NULL
,
NULL
,
MonitorEnumProc
,
0
);
return
;
}
test_enumdisplaydevices
();
test_enumdisplaydevices
();
test_ChangeDisplaySettingsEx
();
test_ChangeDisplaySettingsEx
();
test_DisplayConfigSetDeviceInfo
();
test_DisplayConfigSetDeviceInfo
();
...
...
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