Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0503b179
Commit
0503b179
authored
Jul 21, 2020
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jul 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Trace EnumDisplaySettingsExW() results.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f7aefadd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
sysparams.c
dlls/user32/sysparams.c
+12
-2
No files found.
dlls/user32/sysparams.c
View file @
0503b179
...
...
@@ -3440,8 +3440,9 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
LPDEVMODEW
lpDevMode
,
DWORD
dwFlags
)
{
WCHAR
primary_adapter
[
CCHDEVICENAME
];
BOOL
ret
;
TRACE
(
"%s %
u
%p %#x
\n
"
,
wine_dbgstr_w
(
lpszDeviceName
),
iModeNum
,
lpDevMode
,
dwFlags
);
TRACE
(
"%s %
#x
%p %#x
\n
"
,
wine_dbgstr_w
(
lpszDeviceName
),
iModeNum
,
lpDevMode
,
dwFlags
);
if
(
!
lpszDeviceName
)
{
...
...
@@ -3451,7 +3452,16 @@ BOOL WINAPI EnumDisplaySettingsExW(LPCWSTR lpszDeviceName, DWORD iModeNum,
lpszDeviceName
=
primary_adapter
;
}
return
USER_Driver
->
pEnumDisplaySettingsEx
(
lpszDeviceName
,
iModeNum
,
lpDevMode
,
dwFlags
);
ret
=
USER_Driver
->
pEnumDisplaySettingsEx
(
lpszDeviceName
,
iModeNum
,
lpDevMode
,
dwFlags
);
if
(
ret
)
TRACE
(
"device:%s mode index:%#x position:(%d,%d) resolution:%ux%u frequency:%uHz "
"depth:%ubits orientation:%#x.
\n
"
,
wine_dbgstr_w
(
lpszDeviceName
),
iModeNum
,
lpDevMode
->
u1
.
s2
.
dmPosition
.
x
,
lpDevMode
->
u1
.
s2
.
dmPosition
.
y
,
lpDevMode
->
dmPelsWidth
,
lpDevMode
->
dmPelsHeight
,
lpDevMode
->
dmDisplayFrequency
,
lpDevMode
->
dmBitsPerPel
,
lpDevMode
->
u1
.
s2
.
dmDisplayOrientation
);
else
WARN
(
"Failed to query %s display settings.
\n
"
,
wine_dbgstr_w
(
lpszDeviceName
));
return
ret
;
}
...
...
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