summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2006-12-28 12:47:33 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2006-12-28 12:47:33 +0000
commita7b8ca4e855084f5b6afbfe762f9e6f7ec967428 (patch)
tree00b0078a2435f6997e119d0a67a1db7cabdf7990 /legacy
parentedde5b30887b0cf19061b151dceaeb7a34a0e089 (diff)
Fix warning. First compute value, then increment pointer.
SVN revision: 27591
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c b/legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c
index da98898838..3c0470481b 100644
--- a/legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c
+++ b/legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c
@@ -198,7 +198,10 @@ _xre_gradient_draw(Xrender_Surface *rs, RGBA_Draw_Context *dc, XR_Gradient *gr,
198 { 198 {
199 DATA32 *p = im->image->data, *pe = p + (w * h); 199 DATA32 *p = im->image->data, *pe = p + (w * h);
200 while (p < pe) 200 while (p < pe)
201 *p++ = (*p << 24) + ((*p << 8) & 0xff0000) + ((*p >> 8) & 0xff00) + (*p >> 24); 201 {
202 *p = (*p << 24) + ((*p << 8) & 0xff0000) + ((*p >> 8) & 0xff00) + (*p >> 24);
203 p++;
204 }
202 } 205 }
203 _xr_image_put(xim, gr->surface->draw, 0, 0, w, h); 206 _xr_image_put(xim, gr->surface->draw, 0, 0, w, h);
204 evas_common_image_free(im); 207 evas_common_image_free(im);