Commit 602ab961 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winex11: Remove some unneeded casts.

parent 06b2da95
...@@ -614,7 +614,7 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits, ...@@ -614,7 +614,7 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
dstval=0; dstval=0;
for (x=0; x<width; x++) { for (x=0; x<width; x++) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
srcval=srccolors[(int)*srcpixel++]; srcval=srccolors[*srcpixel++];
dstval|=(X11DRV_DIB_GetNearestIndex dstval|=(X11DRV_DIB_GetNearestIndex
(colors, 2, (colors, 2,
srcval.peRed, srcval.peRed,
...@@ -998,7 +998,7 @@ static void X11DRV_DIB_GetImageBits_4( int lines, BYTE *dstbits, ...@@ -998,7 +998,7 @@ static void X11DRV_DIB_GetImageBits_4( int lines, BYTE *dstbits,
dstval=0; dstval=0;
for (x=0; x<width; x++) { for (x=0; x<width; x++) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
srcval = srccolors[(int)*srcpixel++]; srcval = srccolors[*srcpixel++];
dstval|=(X11DRV_DIB_GetNearestIndex dstval|=(X11DRV_DIB_GetNearestIndex
(colors, 16, (colors, 16,
srcval.peRed, srcval.peRed,
...@@ -1577,7 +1577,7 @@ static void X11DRV_DIB_GetImageBits_8( int lines, BYTE *dstbits, ...@@ -1577,7 +1577,7 @@ static void X11DRV_DIB_GetImageBits_8( int lines, BYTE *dstbits,
dstbyte=dstbits; dstbyte=dstbits;
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
srcval=srccolors[(int)*srcpixel++]; srcval=srccolors[*srcpixel++];
*dstbyte++=X11DRV_DIB_GetNearestIndex(colors, 256, *dstbyte++=X11DRV_DIB_GetNearestIndex(colors, 256,
srcval.peRed, srcval.peRed,
srcval.peGreen, srcval.peGreen,
...@@ -2418,7 +2418,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits, ...@@ -2418,7 +2418,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits,
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
DWORD dstval; DWORD dstval;
srcval=srccolors[(int)*srcpixel++]; srcval=srccolors[*srcpixel++];
dstval=((srcval.peRed << rShift) & rDst) | dstval=((srcval.peRed << rShift) & rDst) |
((srcval.peGreen << gShift) & gDst) | ((srcval.peGreen << gShift) & gDst) |
((srcval.peBlue << bShift) & bDst); ((srcval.peBlue << bShift) & bDst);
...@@ -2815,7 +2815,7 @@ static void X11DRV_DIB_GetImageBits_24( int lines, BYTE *dstbits, ...@@ -2815,7 +2815,7 @@ static void X11DRV_DIB_GetImageBits_24( int lines, BYTE *dstbits,
dstbyte=dstbits; dstbyte=dstbits;
for (x = 0; x < width; x++ ) { for (x = 0; x < width; x++ ) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
srcval=srccolors[(int)*srcpixel++]; srcval=srccolors[*srcpixel++];
dstbyte[0]=srcval.peBlue; dstbyte[0]=srcval.peBlue;
dstbyte[1]=srcval.peGreen; dstbyte[1]=srcval.peGreen;
dstbyte[2]=srcval.peRed; dstbyte[2]=srcval.peRed;
...@@ -3400,7 +3400,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits, ...@@ -3400,7 +3400,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits,
dstpixel=(DWORD*)dstbits; dstpixel=(DWORD*)dstbits;
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
PALETTEENTRY srcval; PALETTEENTRY srcval;
srcval=srccolors[(int)*srcpixel++]; srcval=srccolors[*srcpixel++];
*dstpixel++=(srcval.peRed << rShift) | *dstpixel++=(srcval.peRed << rShift) |
(srcval.peGreen << gShift) | (srcval.peGreen << gShift) |
(srcval.peBlue << bShift); (srcval.peBlue << bShift);
......
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