diff options
author | Adam Jackson <ajax@redhat.com> | 2010-09-11 17:55:57 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-11-10 16:17:24 -0800 |
commit | f0b4df99486066ad0e638b3b5debc905bc8ef1c4 (patch) | |
tree | 3fca2e6d6affb2386ae936ec882e340775685f63 /miext | |
parent | c9c0f93f8ed42413a05193ee71c69fa6b41f6a03 (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')
-rw-r--r-- | miext/shadow/shpacked.c | 4 |
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++; |