mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 13:10:09 +01:00
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>
(cherry picked from commit f0b4df9948)
This commit is contained in:
parent
a0895a2190
commit
4a7b5a33e1
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue