summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-06-24 13:12:21 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-06-24 13:13:34 +0200
commit9b1f2d2e8ede3fb5a9789004d397bcea68e46445 (patch)
tree13c7fb7d1c50ec11e1216169e1f515028a179187
parent259037d1d8830232e6631e84b06612a7a3d1d197 (diff)
compositor-openwfd: Expose physical size
-rw-r--r--compositor/compositor-openwfd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/compositor/compositor-openwfd.c b/compositor/compositor-openwfd.c
index b6e7253..422a38b 100644
--- a/compositor/compositor-openwfd.c
+++ b/compositor/compositor-openwfd.c
@@ -216,6 +216,7 @@ create_output_for_port(struct wfd_compositor *ec,
WFDint native_resolution[2];
struct wfd_mode *mode;
WFDPortMode *modes;
+ WFDfloat physical_size[2];
output = malloc(sizeof *output);
if (output == NULL)
@@ -300,8 +301,12 @@ create_output_for_port(struct wfd_compositor *ec,
ec->used_pipelines |= (1 << output->pipeline_id);
+ wfdGetPortAttribfv(ec->dev, output->port,
+ WFD_PORT_PHYSICAL_SIZE,
+ 2, physical_size);
+
wlsc_output_init(&output->base, &ec->base, x, y,
- width, height, 0);
+ physical_size[0], physical_size[1], 0);
output->pipeline = wfdCreatePipeline(ec->dev, output->pipeline_id, NULL);
if (output->pipeline == WFD_INVALID_HANDLE) {