[PATCH weston 13/14] libweston: Drop requirement of setting mm_width/mm_height in backends
Armin Krezović
krezovic.armin at gmail.com
Fri Sep 30 12:11:14 UTC 2016
They were required for transitional phase in order not to
break previous weston_output_init(). Now, they can even
be initialized on enable, or left with defaults if backend
doesn't support them.
Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
libweston/compositor.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 2f83313..d552e18 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -4514,9 +4514,6 @@ weston_output_enable(struct weston_output *output)
if (!wl_list_empty(&c->output_list))
x = iterator->x + iterator->width;
- /* Make sure the width and height are configured */
- assert(output->mm_width && output->mm_height);
-
/* Make sure the scale is set up */
assert(output->scale);
--
2.10.0
More information about the wayland-devel
mailing list