Replaced lvalue casts / postincrement mixes.

This commit is contained in:
Marcus Meissner 2004-07-12 19:46:24 +00:00 committed by Alexandre Julliard
parent ed9d91e6a1
commit 035f34c99b
2 changed files with 9 additions and 5 deletions

View File

@ -1188,7 +1188,8 @@ static void convert_0888_to_888_asis(int width, int height,
for (x=0; x<oddwidth; x++) {
DWORD srcval;
srcval=*srcpixel++;
*((WORD*)dstbyte)++=srcval; /* h, g */
*((WORD*)dstbyte) = srcval; /* h, g */
dstbyte+=sizeof(WORD);
*dstbyte++=srcval >> 16; /* l */
}
srcbits = (char*)srcbits + srclinebytes;
@ -1239,8 +1240,9 @@ static void convert_0888_to_888_reverse(int width, int height,
for (x=0; x<oddwidth; x++) {
DWORD srcval;
srcval=*srcpixel++;
*((WORD*)dstbyte)++=((srcval >> 16) & 0x00ff) | /* h */
(srcval & 0xff00); /* g */
*((WORD*)dstbyte)=((srcval >> 16) & 0x00ff) | /* h */
(srcval & 0xff00); /* g */
dstbyte += sizeof(WORD);
*dstbyte++=srcval; /* l */
}
srcbits = (char*)srcbits + srclinebytes;

View File

@ -1360,7 +1360,8 @@ static void convert_0888_to_888_asis_src_byteswap(int width, int height,
DWORD srcval;
srcval=*srcpixel++;
FLIP_DWORD(&srcval);
*((WORD*)dstbyte)++=srcval; /* h, g */
*((WORD*)dstbyte)=srcval; /* h, g */
dstbyte+=sizeof(WORD);
*dstbyte++=srcval >> 16; /* l */
}
srcbits = (char*)srcbits + srclinebytes;
@ -1405,7 +1406,8 @@ static void convert_0888_to_888_reverse_src_byteswap(int width, int height,
for (x=0; x<oddwidth; x++) {
DWORD srcval;
srcval=*srcpixel++;
*((WORD*)dstbyte)++=((srcval >> 8) & 0xffff); /* g, h */
*((WORD*)dstbyte)=((srcval >> 8) & 0xffff); /* g, h */
dstbyte+=sizeof(WORD);
*dstbyte++= srcval >> 24; /* l */
}
srcbits = (char*)srcbits + srclinebytes;