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
f00dcb4b
Commit
f00dcb4b
authored
Feb 13, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Return edidManufactureId and edidProductCodeId from NtUserDisplayConfigGetDeviceInfo().
parent
76713da1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sysparams.c
dlls/win32u/sysparams.c
+9
-0
No files found.
dlls/win32u/sysparams.c
View file @
f00dcb4b
...
...
@@ -224,6 +224,7 @@ struct edid_monitor_info
{
unsigned
int
flags
;
/* MONITOR_INFO_HAS_MONITOR_ID */
unsigned
short
manufacturer
,
product_code
;
char
monitor_id_string
[
8
];
};
...
...
@@ -467,6 +468,8 @@ static void get_monitor_info_from_edid( struct edid_monitor_info *info, const un
}
if
(
w
)
return
;
w
=
edid
[
10
]
|
(
edid
[
11
]
<<
8
);
/* Product code, little endian. */
info
->
manufacturer
=
*
(
unsigned
short
*
)(
edid
+
8
);
info
->
product_code
=
w
;
sprintf
(
info
->
monitor_id_string
+
3
,
"%04X"
,
w
);
info
->
flags
=
MONITOR_INFO_HAS_MONITOR_ID
;
TRACE
(
"Monitor id %s.
\n
"
,
info
->
monitor_id_string
);
...
...
@@ -5732,6 +5735,12 @@ NTSTATUS WINAPI NtUserDisplayConfigGetDeviceInfo( DISPLAYCONFIG_DEVICE_INFO_HEAD
snprintf
(
buffer
,
ARRAY_SIZE
(
buffer
),
"Display%u"
,
monitor
->
output_id
+
1
);
asciiz_to_unicode
(
target_name
->
monitorFriendlyDeviceName
,
buffer
);
lstrcpyW
(
target_name
->
monitorDevicePath
,
monitor
->
dev
.
interface_name
);
if
(
monitor
->
edid_info
.
flags
&
MONITOR_INFO_HAS_MONITOR_ID
)
{
target_name
->
edidManufactureId
=
monitor
->
edid_info
.
manufacturer
;
target_name
->
edidProductCodeId
=
monitor
->
edid_info
.
product_code
;
target_name
->
flags
.
edidIdsValid
=
1
;
}
ret
=
STATUS_SUCCESS
;
break
;
}
...
...
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