summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/armada_drm_xv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/armada_drm_xv.c b/src/armada_drm_xv.c
index 656b381..87cc737 100644
--- a/src/armada_drm_xv.c
+++ b/src/armada_drm_xv.c
@@ -946,7 +946,8 @@ armada_drm_plane_Put(ScrnInfoPtr pScrn, struct drm_xv *drmxv, uint32_t fb_id,
Bool obscured;
box_init(&crtcbox, crtc->x, crtc->y,
- crtc->mode.HDisplay, crtc->mode.VDisplay);
+ xf86ModeWidth(&crtc->mode, crtc->rotation),
+ xf86ModeHeight(&crtc->mode, crtc->rotation));
obscured = RegionContainsRect(clipBoxes, &crtcbox) == rgnIN;