mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/pixman: drop cast for pixman_image_set_clip_region32()
The new Pixman release has made this const.
This commit is contained in:
parent
0d056a0315
commit
a818251aec
2 changed files with 3 additions and 3 deletions
|
|
@ -116,7 +116,7 @@ xkbcommon = dependency(
|
|||
],
|
||||
)
|
||||
pixman = dependency('pixman-1',
|
||||
version: '>=0.42.0',
|
||||
version: '>=0.43.0',
|
||||
fallback: 'pixman',
|
||||
default_options: ['werror=false'],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue