From: Ilpo Ruotsalainen <[email protected]>

v2: Also remove the very very last reference to PickBits, and handle
some pointer maths.

Signed-off-by: Corbin Simpson <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
---
 miext/shadow/shpacked.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c
index 6736162..6339a80 100644
--- a/miext/shadow/shpacked.c
+++ b/miext/shadow/shpacked.c
@@ -101,9 +101,8 @@ shadowUpdatePacked (ScreenPtr           pScreen,
                    i = width;
                width -= i;
                scr += i;
-#define PickBit(a,i)   (((a) >> (i)) & 1)
-               while (i--)
-                   *win++ = *sha++;
+               memcpy(win, sha, i * sizeof(FbBits));
+               sha += i;
            }
            shaLine += shaStride;
            y++;
-- 
1.6.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