]> Dogcows Code - chaz/openbox/commitdiff
better more valid C
authorDana Jansens <danakj@orodu.net>
Fri, 12 Sep 2003 02:19:05 +0000 (02:19 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 12 Sep 2003 02:19:05 +0000 (02:19 +0000)
render/theme.c

index 217b4e5130fe0661694a91a66a92a80438631b47..8c348441b5c1e7fc95b53ee1af2d31e1ca85a5f9 100644 (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;
This page took 0.024679 seconds and 4 git commands to generate.