summaryrefslogtreecommitdiff
path: root/miext/shadow
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-09-11 17:55:57 -0400
committerKeith Packard <keithp@keithp.com>2010-11-10 16:17:24 -0800
commitf0b4df99486066ad0e638b3b5debc905bc8ef1c4 (patch)
tree3fca2e6d6affb2386ae936ec882e340775685f63 /miext/shadow
parentc9c0f93f8ed42413a05193ee71c69fa6b41f6a03 (diff)
shadow: Optimize shadowUpdatePacked(). (#26973)
Signed-off-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Soren Sandmann <sandmann@daimi.au.dk> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'miext/shadow')
-rw-r--r--miext/shadow/shpacked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miext/shadow/shpacked.c b/miext/shadow/shpacked.c
index 20d2ea19e..06606bcf3 100644
--- a/miext/shadow/shpacked.c
+++ b/miext/shadow/shpacked.c
@@ -102,8 +102,8 @@ shadowUpdatePacked (ScreenPtr pScreen,
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++;