diff options
author | Alex Deucher <alex@samba.(none)> | 2008-02-27 02:13:10 -0500 |
---|---|---|
committer | Alex Deucher <alex@samba.(none)> | 2008-02-27 02:13:10 -0500 |
commit | 7cfad216a3f1486be194c972b9b6bcf070358586 (patch) | |
tree | f69814c2dadac514b7947107cd5da0bcce0c7a5c /src/radeon_textured_video.c | |
parent | a2dca1d68d751def34ef3c6f836574173737bf76 (diff) |
RADEON: fix clipping for textured video
Diffstat (limited to 'src/radeon_textured_video.c')
-rw-r--r-- | src/radeon_textured_video.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c index ff2e5d69..df620821 100644 --- a/src/radeon_textured_video.c +++ b/src/radeon_textured_video.c @@ -240,7 +240,7 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, tmp = ((top >> 1) * srcPitch2) + (left >> 1); s2offset += tmp; s3offset += tmp; - if(id == FOURCC_I420) { + if (id == FOURCC_I420) { tmp = s2offset; s2offset = s3offset; s3offset = tmp; @@ -263,18 +263,14 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, } pPriv->id = id; - pPriv->src_x1 = x1; - pPriv->src_y1 = y1; - pPriv->src_x2 = x2; - pPriv->src_y2 = y2; pPriv->src_w = src_w; pPriv->src_h = src_h; - pPriv->dst_x1 = dstBox.x1; - pPriv->dst_y1 = dstBox.y1; - pPriv->dst_x2 = dstBox.x2; - pPriv->dst_y2 = dstBox.y1; + pPriv->drw_x = drw_x; + pPriv->drw_y = drw_y; pPriv->dst_w = drw_w; pPriv->dst_h = drw_h; + pPriv->w = width; + pPriv->h = height; #ifdef XF86DRI if (info->directRenderingEnabled) |