compositor: resize extended clip context when display resizes

This commit is contained in:
K. Lange 2022-10-10 18:41:21 +09:00
parent 4ab636defa
commit 28a13af1f4

View File

@ -1018,6 +1018,13 @@ static void resize_display(yutani_globals_t * yg) {
blur_ctx = init_graphics_sprite(blur_sprite);
clip_ctx->width = yg->backend_ctx->width;
clip_ctx->height = yg->backend_ctx->height;
/* reinitialize extended clip context or we won't be drawing enough later... */
if (clip_ctx->clips && clip_ctx->clips_size) {
free(clip_ctx->clips);
clip_ctx->clips_size = 0;
clip_ctx->clips = NULL;
}
#endif
TRACE("graphics context resized...");