Commit b2787fb1 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

win32u: Store output id in monitors cache.

parent 162101bc
......@@ -226,6 +226,7 @@ struct monitor
HANDLE handle;
unsigned int id;
unsigned int flags;
unsigned int output_id;
RECT rc_monitor;
RECT rc_work;
BOOL is_clone;
......@@ -714,6 +715,17 @@ static BOOL read_monitor_settings( struct adapter *adapter, DWORD index, struct
}
monitor->dev.state_flags = *(const DWORD *)value->Data;
/* Output ID */
size = query_reg_subkey_value( hkey, devpropkey_monitor_output_idW,
sizeof(devpropkey_monitor_output_idW),
value, sizeof(buffer) );
if (size != sizeof(monitor->output_id))
{
NtClose( hkey );
return FALSE;
}
monitor->output_id = *(const unsigned int *)value->Data;
/* rc_monitor, WINE_DEVPROPKEY_MONITOR_RCMONITOR */
size = query_reg_subkey_value( hkey, wine_devpropkey_monitor_rcmonitorW,
sizeof(wine_devpropkey_monitor_rcmonitorW),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment