mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 00:38:00 +02:00
Fix a longstanding XAA CopyPlane bug.
TmpBitPlane is a plane mask, not a plane index. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
parent
66d8f94ebe
commit
395e61a3ca
1 changed files with 3 additions and 3 deletions
|
|
@ -110,12 +110,12 @@ XAACopyPlaneNtoNColorExpand(
|
|||
int Bpp = pSrc->bitsPerPixel >> 3;
|
||||
unsigned long mask = TmpBitPlane;
|
||||
|
||||
if(TmpBitPlane < 8) {
|
||||
if(TmpBitPlane < (1 << 8)) {
|
||||
offset = 0;
|
||||
} else if(TmpBitPlane < 16) {
|
||||
} else if(TmpBitPlane < (1 << 16)) {
|
||||
offset = 1;
|
||||
mask >>= 8;
|
||||
} else if(TmpBitPlane < 24) {
|
||||
} else if(TmpBitPlane < (1 << 24)) {
|
||||
offset = 2;
|
||||
mask >>= 16;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue