From: Dana Jansens Date: Fri, 12 Sep 2003 02:19:05 +0000 (+0000) Subject: better more valid C X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=cee67e17005f1ece4f06af507e6d6317fff14d81;p=chaz%2Fopenbox better more valid C --- diff --git a/render/theme.c b/render/theme.c index 217b4e51..8c348441 100644 --- a/render/theme.c +++ b/render/theme.c @@ -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;