aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--box-drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c
index 603bcb04..dfb868e8 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -1706,7 +1706,7 @@ draw_right_half_block(struct buf *buf)
static void NOINLINE
draw_pixman_shade(struct buf *buf, uint16_t v)
{
- pixman_color_t shade = {0, 0, 0, v};
+ pixman_color_t shade = {.red = 0, .green = 0, .blue = 0, .alpha = v};
pixman_image_fill_rectangles(
PIXMAN_OP_SRC, buf->pix, &shade, 1,
(pixman_rectangle16_t []){{0, 0, buf->width, buf->height}});