From daeb9291e22d94cd2f81b3b56418f0f879531da5 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 17 Sep 2011 00:27:55 +0100 Subject: [PATCH] sna/trapezoids: Ensure we do not overrun the vertical edges for mono Signed-off-by: Chris Wilson --- src/sna/sna_trapezoids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index ef3cd041..18376a08 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -1795,7 +1795,7 @@ mono_render(struct mono *mono) if (mono->is_vertical) { struct mono_edge *e = mono->head.next; - int min_height = e->height_left; + int min_height = h - i; while (e != &mono->tail) { if (e->height_left < min_height)