render/pixman: drop cast for pixman_image_set_clip_region32()

The new Pixman release has made this const.
This commit is contained in:
Simon Ser 2024-01-04 12:00:45 +01:00
parent 0d056a0315
commit a818251aec
2 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ xkbcommon = dependency(
],
)
pixman = dependency('pixman-1',
version: '>=0.42.0',
version: '>=0.43.0',
fallback: 'pixman',
default_options: ['werror=false'],
)

View file

@ -48,7 +48,7 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
}
pixman_op_t op = get_pixman_blending(options->blend_mode);
pixman_image_set_clip_region32(buffer->image, (pixman_region32_t *)options->clip);
pixman_image_set_clip_region32(buffer->image, options->clip);
struct wlr_fbox src_fbox;
wlr_render_texture_options_get_src_box(options, &src_fbox);
@ -217,7 +217,7 @@ static void render_pass_add_rect(struct wlr_render_pass *wlr_pass,
pixman_image_t *fill = pixman_image_create_solid_fill(&color);
pixman_image_set_clip_region32(buffer->image, (pixman_region32_t *)options->clip);
pixman_image_set_clip_region32(buffer->image, options->clip);
pixman_image_composite32(op, fill, NULL, buffer->image,
0, 0, 0, 0, box.x, box.y, box.width, box.height);
pixman_image_set_clip_region32(buffer->image, NULL);