diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-06-24 13:12:21 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-06-24 13:13:34 +0200 |
commit | 9b1f2d2e8ede3fb5a9789004d397bcea68e46445 (patch) | |
tree | 13c7fb7d1c50ec11e1216169e1f515028a179187 | |
parent | 259037d1d8830232e6631e84b06612a7a3d1d197 (diff) |
compositor-openwfd: Expose physical size
-rw-r--r-- | compositor/compositor-openwfd.c | 7 |
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) { |