better more valid C

This commit is contained in:
Dana Jansens 2003-09-12 02:19:05 +00:00
parent 5941c924e8
commit cee67e1700

View file

@ -1274,10 +1274,11 @@ static RrPixel32* read_c_image(gint width, gint height, const guint8 *data)
guchar g = ((*p >> 8) & 0xff);
guchar r = ((*p >> 0) & 0xff);
*p++ = ((r << RrDefaultRedOffset) +
(g << RrDefaultGreenOffset) +
(b << RrDefaultBlueOffset) +
(a << RrDefaultAlphaOffset));
*p = ((r << RrDefaultRedOffset) +
(g << RrDefaultGreenOffset) +
(b << RrDefaultBlueOffset) +
(a << RrDefaultAlphaOffset));
p++;
}
return im;