mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04:00
box-drawing: draw_pixman_shade(): named struct initialization
This commit is contained in:
parent
977d37396f
commit
3d97b8c113
1 changed files with 1 additions and 1 deletions
|
|
@ -1706,7 +1706,7 @@ draw_right_half_block(struct buf *buf)
|
||||||
static void NOINLINE
|
static void NOINLINE
|
||||||
draw_pixman_shade(struct buf *buf, uint16_t v)
|
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_image_fill_rectangles(
|
||||||
PIXMAN_OP_SRC, buf->pix, &shade, 1,
|
PIXMAN_OP_SRC, buf->pix, &shade, 1,
|
||||||
(pixman_rectangle16_t []){{0, 0, buf->width, buf->height}});
|
(pixman_rectangle16_t []){{0, 0, buf->width, buf->height}});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue