winex11.drv: WORD and BYTE swapped in 555->1 bit converter (Coverity).

This commit is contained in:
Marcus Meissner 2011-10-24 07:51:30 +02:00 committed by Alexandre Julliard
parent 5eb6994dc2
commit 0101149c7a
1 changed files with 3 additions and 2 deletions

View File

@ -594,12 +594,13 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
} else if (bmpImage->blue_mask==0x7c00) {
/* ==== bgr 555 bmp -> pal 1 dib ==== */
for (h=0; h<lines; h++) {
WORD dstval;
BYTE dstval;
srcpixel=srcbits;
dstbyte=dstbits;
dstval=0;
for (x=0; x<width; x++) {
BYTE srcval;
WORD srcval;
srcval=*srcpixel++;
dstval|=(X11DRV_DIB_GetNearestIndex
(colors, 2,