diff --git a/meson.build b/meson.build index 5a1146692..fb1ea12ba 100644 --- a/meson.build +++ b/meson.build @@ -116,7 +116,7 @@ xkbcommon = dependency( ], ) pixman = dependency('pixman-1', - version: '>=0.42.0', + version: '>=0.43.0', fallback: 'pixman', default_options: ['werror=false'], ) diff --git a/render/pixman/pass.c b/render/pixman/pass.c index 30883c8b4..4ae742cab 100644 --- a/render/pixman/pass.c +++ b/render/pixman/pass.c @@ -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);