From d2e40a3d0d2cba7d228537180f5997717f60366f Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Thu, 3 Jan 2019 18:00:46 +0900 Subject: [PATCH] yutani: missing clip region recalculation in reinit --- lib/yutani.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/yutani.c b/lib/yutani.c index 0d91de6a..2cb56ef7 100644 --- a/lib/yutani.c +++ b/lib/yutani.c @@ -1092,6 +1092,13 @@ void reinit_graphics_yutani(gfx_context_t * out, yutani_window_t * window) { out->stride = window->width * 4; out->depth = 32; out->size = GFX_H(out) * GFX_W(out) * GFX_B(out); + + if (out->clips && out->clips_size != out->height) { + free(out->clips); + out->clips = NULL; + out->clips_size = 0; + } + if (out->buffer == out->backbuffer) { out->buffer = window->buffer; out->backbuffer = out->buffer;