From 499b49eb033a04e1e5bfc0d80a4d2e99f63aa6fd Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 8 Feb 2020 19:15:10 +0000 Subject: [PATCH] Fix build on clang Signed-off-by: Yuxuan Shui --- src/backend/backend_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/backend_common.c b/src/backend/backend_common.c index c5b9866..471a677 100644 --- a/src/backend/backend_common.c +++ b/src/backend/backend_common.c @@ -247,7 +247,7 @@ bool build_shadow(xcb_connection_t *c, xcb_drawable_t d, double opacity, const i } uint32_t offset = row * shadow_image->stride / sizeof(*shadow_image->data); - xcb_put_image(c, shadow_image->format, shadow_pixmap, gc, + xcb_put_image(c, (uint8_t)shadow_image->format, shadow_pixmap, gc, shadow_image->width, batch_height, 0, to_i16_checked(row), 0, shadow_image->depth, shadow_image->stride * batch_height, shadow_image->data + offset);