diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-21 10:26:41 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-02-21 09:37:59 +0000 |
commit | bbd5145d8a5212f350c01e5f8519a81783ced2cc (patch) | |
tree | ef656dd6e5695b0057d75449a0222132c44d2d27 /backend/drm | |
parent | 7d90cd055d82ef8368318433ec9fa9bfc271a3da (diff) |
backend/drm: drop unnecessary pixman_region32_t casts
The Pixman API now accepts const parameters.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/libliftoff.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/libliftoff.c b/backend/drm/libliftoff.c index 812ce7f8..ecc79ce9 100644 --- a/backend/drm/libliftoff.c +++ b/backend/drm/libliftoff.c @@ -313,11 +313,10 @@ static bool 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"); |