From fa19839fe190d2cb13cfadcae22b174a81ec925c Mon Sep 17 00:00:00 2001 From: Ilpo Ruotsalainen Date: Wed, 7 Nov 2007 09:53:39 +0000 Subject: Optimize shadowUpdatePacked(). --- 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