aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/atomic.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-24 12:47:59 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-11 23:11:17 +0000
commitfeb56912409d8208253942e48bcd861400f32172 (patch)
tree329150ad3666245e5ab330fd9ad2e9a3774c441e /backend/drm/atomic.c
parent8bbe8624dfdb4fbf120aee3dd6f0f8eeeed3bf7e (diff)
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.
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r--backend/drm/atomic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index da1119b2..c882fff9 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -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");