[PATCH weston 13/14] libweston: Drop requirement of setting mm_width/mm_height in backends
Armin Krezović
krezovic.armin at gmail.com
Thu Aug 18 16:42:41 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.
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 9835f89..a45b96f 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -4505,9 +4505,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.9.3
More information about the wayland-devel
mailing list