diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-06-24 11:56:25 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-06-24 11:57:06 +0200 |
commit | a16e002bd814510e99e99469a69fe941428e9faa (patch) | |
tree | 6adeb7b09a1957307c3f6d67b3f196101f520277 | |
parent | a691aeefd7f4bed97e60543723fa9b76888fbce3 (diff) |
compositor-drm: Pass physical size to output_init
-rw-r--r-- | compositor/compositor-drm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index 5c3e37a..cb38cd6 100644 --- a/compositor/compositor-drm.c +++ b/compositor/compositor-drm.c @@ -416,10 +416,6 @@ create_output_for_connector(struct drm_compositor *ec, return -1; memset(output, 0, sizeof *output); - output->base.x = x; - output->base.y = y; - output->base.mm_width = connector->mmWidth; - output->base.mm_height = connector->mmHeight; output->base.subpixel = drm_subpixel_to_wayland(connector->subpixel); output->base.make = "unknown"; output->base.model = "unknown"; @@ -441,7 +437,8 @@ create_output_for_connector(struct drm_compositor *ec, drm_mode->base.flags = WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED; - wlsc_output_init(&output->base, &ec->base, x, y, 200, 100, 0); + wlsc_output_init(&output->base, &ec->base, x, y, + connector->mmWidth, connector->mmHeight, 0); wl_list_insert(ec->base.output_list.prev, &output->base.link); |