From cee67e17005f1ece4f06af507e6d6317fff14d81 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Sep 2003 02:19:05 +0000 Subject: [PATCH] better more valid C --- render/theme.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; -- 2.45.2