better more valid C
This commit is contained in:
parent
5941c924e8
commit
cee67e1700
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue