diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 09:24:01 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 09:24:01 +0200 |
commit | 4d92ad48404081f0f7b3df8e16b78b573dd436ca (patch) | |
tree | 6ddb3d1e829d3a95dcb276ee9c8b1a90bd0f849c | |
parent | f0a6e83d82c2586622908d043ce70432bceecdf0 (diff) |
wfdport: Handle native_resolution attribute
-rw-r--r-- | src/wfdport.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wfdport.c b/src/wfdport.c index f777311..938a9ae 100644 --- a/src/wfdport.c +++ b/src/wfdport.c @@ -296,6 +296,16 @@ wfd_port_get_attribiv(struct wfd_device *device, WFDint *value) { switch (attribute) { + case WFD_PORT_NATIVE_RESOLUTION: + if (count != 2) + return; + if (port->connector-count_modes > 0) { + value[0] = port->connector->modes[0].hdisplay; + value[1] = port->connector->modes[0].vdisplay; + } else { + value[0] = value[1] = 0; + } + break; case WFD_PORT_BINDABLE_PIPELINE_IDS: wfd_port_get_bindable_pipelines(device, port, count, value); break; |