Commit 035f34c9 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Replaced lvalue casts / postincrement mixes.

parent ed9d91e6
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment