projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5941c92
)
better more valid C
author
Dana Jansens
<danakj@orodu.net>
Fri, 12 Sep 2003 02:19:05 +0000
(
02:19
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 12 Sep 2003 02:19:05 +0000
(
02:19
+0000)
render/theme.c
patch
|
blob
|
history
diff --git
a/render/theme.c
b/render/theme.c
index 217b4e5130fe0661694a91a66a92a80438631b47..8c348441b5c1e7fc95b53ee1af2d31e1ca85a5f9 100644
(file)
--- 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;