From: Ilpo Ruotsalainen <[email protected]>

http://bugs.freedesktop.org/show_bug.cgi?id=26973

Signed-off-by: Adrian Bunk <[email protected]>

---

We already ship this patch in the ARM Linux Internet Platform, and it 
looks like a good candidate for upstream inclusion.

The "#define PickBit" can be deleted, but that's unrelated.

 miext/shadow/shpacked.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c
index 6736162..f95adf9 100644
--- a/miext/shadow/shpacked.c
+++ b/miext/shadow/shpacked.c
@@ -102,8 +102,7 @@ shadowUpdatePacked (ScreenPtr           pScreen,
                width -= i;
                scr += i;
 #define PickBit(a,i)   (((a) >> (i)) & 1)
-               while (i--)
-                   *win++ = *sha++;
+               memcpy(win, sha, i * sizeof(FbBits));
            }
            shaLine += shaStride;
            y++;
-- 
1.5.6.1

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to