mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend: remove const casts for pixman_region32_t
Pixman 0.42.0 has constified APIs for pixman_region32_t. We no longer need the casts.
This commit is contained in:
parent
8bbe8624df
commit
feb5691240
3 changed files with 10 additions and 11 deletions
|
|
@ -240,11 +240,11 @@ static bool atomic_crtc_commit(struct wlr_drm_connector *conn,
|
|||
|
||||
uint32_t fb_damage_clips = 0;
|
||||
if ((state->base->committed & WLR_OUTPUT_STATE_DAMAGE) &&
|
||||
pixman_region32_not_empty((pixman_region32_t *)&state->base->damage) &&
|
||||
pixman_region32_not_empty(&state->base->damage) &&
|
||||
crtc->primary->props.fb_damage_clips != 0) {
|
||||
int rects_len;
|
||||
const pixman_box32_t *rects = pixman_region32_rectangles(
|
||||
(pixman_region32_t *)&state->base->damage, &rects_len);
|
||||
const pixman_box32_t *rects =
|
||||
pixman_region32_rectangles(&state->base->damage, &rects_len);
|
||||
if (drmModeCreatePropertyBlob(drm->fd, rects,
|
||||
sizeof(*rects) * rects_len, &fb_damage_clips) != 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Failed to create FB_DAMAGE_CLIPS property blob");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue