diff options
author | David Reveman <c99drn@cs.umu.se> | 2006-05-09 22:44:31 +0000 |
---|---|---|
committer | David Reveman <c99drn@cs.umu.se> | 2006-05-09 22:44:31 +0000 |
commit | 933b9f7615d68054aa2239895d37b669b382777e (patch) | |
tree | 692e50725931875633cd3bea9f80ad070bae43a9 | |
parent | 2fb8f16e8b93ac91a07f9dac92da5d8e5abf5fb9 (diff) |
Fix handling of Xv images with width that is not a multiple of 8
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | hw/xgl/xglxv.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-05-09 David Reveman <davidr@novell.com> + + * hw/xgl/xglxv.c (xglXvPutImage): Stride should be padded to a + multiple of 8. + 2006-05-05 David Reveman <davidr@novell.com> * hw/xgl/glx/xglx.c (xglxKbdCtrl): No need to go through more than diff --git a/hw/xgl/xglxv.c b/hw/xgl/xglxv.c index faef674c4..e9191bcfb 100644 --- a/hw/xgl/xglxv.c +++ b/hw/xgl/xglxv.c @@ -339,7 +339,7 @@ xglXvPutImage (ClientPtr client, srcWidth, srcHeight, depth, bpp, -1, (pointer) data); - XGL_GET_PIXMAP_PRIV (pPortPriv->pPixmap)->stride = -srcWidth; + XGL_GET_PIXMAP_PRIV (pPortPriv->pPixmap)->stride = -((srcWidth + 7) & ~7); pPortPriv->pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; |