mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
Fix some && (logical) that should clearly have been & (bitwise).
This commit is contained in:
parent
4bb39f5899
commit
c6f1d4c3a0
1 changed files with 4 additions and 4 deletions
|
|
@ -1453,7 +1453,7 @@ static void put_row_8R8G8B24_ximage( PUT_ROW_ARGS )
|
|||
pixel &= 0x00ffffff;
|
||||
pixel |= rgba[i][BCOMP] << 24;
|
||||
*ptr4++ = pixel;
|
||||
pixel = *ptr4 && 0xffff0000;
|
||||
pixel = *ptr4 & 0xffff0000;
|
||||
pixel |= rgba[i][GCOMP];
|
||||
pixel |= rgba[i][RCOMP] << 8;
|
||||
*ptr4 = pixel;
|
||||
|
|
@ -1463,7 +1463,7 @@ static void put_row_8R8G8B24_ximage( PUT_ROW_ARGS )
|
|||
pixel |= rgba[i][BCOMP] << 16;
|
||||
pixel |= rgba[i][GCOMP] << 24;
|
||||
*ptr4++ = pixel;
|
||||
pixel = *ptr4 && 0xffffff00;
|
||||
pixel = *ptr4 & 0xffffff00;
|
||||
pixel |= rgba[i][RCOMP];
|
||||
*ptr4 = pixel;
|
||||
break;
|
||||
|
|
@ -1493,7 +1493,7 @@ static void put_row_8R8G8B24_ximage( PUT_ROW_ARGS )
|
|||
pixel &= 0x00ffffff;
|
||||
pixel |= rgba[i][BCOMP] << 24;
|
||||
*ptr4++ = pixel;
|
||||
pixel = *ptr4 && 0xffff0000;
|
||||
pixel = *ptr4 & 0xffff0000;
|
||||
pixel |= rgba[i][GCOMP];
|
||||
pixel |= rgba[i++][RCOMP] << 8;
|
||||
*ptr4 = pixel;
|
||||
|
|
@ -1504,7 +1504,7 @@ static void put_row_8R8G8B24_ximage( PUT_ROW_ARGS )
|
|||
pixel |= rgba[i][BCOMP] << 16;
|
||||
pixel |= rgba[i][GCOMP] << 24;
|
||||
*ptr4++ = pixel;
|
||||
pixel = *ptr4 && 0xffffff00;
|
||||
pixel = *ptr4 & 0xffffff00;
|
||||
pixel |= rgba[i++][RCOMP];
|
||||
*ptr4 = pixel;
|
||||
if (0 == --w)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue