diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 10:07:37 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 10:07:37 +0200 |
commit | 2ac453a36b2f6adf5ca5e7812ebb2e26d790f884 (patch) | |
tree | ff3d1bca5c138b6bab2c6901799e23fc2eeb5e44 | |
parent | fd7bdf88bb89b02b617e26b8fdcc48513ebf79f8 (diff) |
wfdport: Handle WFD_PORT_PHYSICAL_SIZE
-rw-r--r-- | src/wfdport.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wfdport.c b/src/wfdport.c index ba8178c..f1d5bdf 100644 --- a/src/wfdport.c +++ b/src/wfdport.c @@ -339,6 +339,12 @@ wfd_port_get_attribfv(struct wfd_device *device, WFDfloat *value) { switch (attribute) { + case WFD_PORT_PHYSICAL_SIZE: + if (count != 2) + return; + value[0] = (WFDfloat) port->connector->mmWidth; + value[1] = (WFDfloat) port->connector->mmHeight; + break; case WFD_PORT_BACKGROUND_COLOR: if (count != 3) return; |