summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i915_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i915_video.c b/src/i915_video.c
index 861bea61..d46c6d15 100644
--- a/src/i915_video.c
+++ b/src/i915_video.c
@@ -69,7 +69,8 @@ I915DisplayVideoTextured(ScrnInfoPtr scrn,
ScreenPtr screen = pixmap->drawable.pScreen;
target = screen->CreatePixmap(screen,
- drw_w, drw_h,
+ dstRegion->extents.x2 - dxo,
+ dstRegion->extents.y2 - dyo,
pixmap->drawable.depth,
CREATE_PIXMAP_USAGE_SCRATCH);