From a7b8ca4e855084f5b6afbfe762f9e6f7ec967428 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Thu, 28 Dec 2006 12:47:33 +0000 Subject: [PATCH] Fix warning. First compute value, then increment pointer. SVN revision: 27591 --- legacy/evas/src/modules/engines/xrender_x11/evas_engine_gradient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 da98898..3c04704 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, { DATA32 *p = im->image->data, *pe = p + (w * h); while (p < pe) - *p++ = (*p << 24) + ((*p << 8) & 0xff0000) + ((*p >> 8) & 0xff00) + (*p >> 24); + { + *p = (*p << 24) + ((*p << 8) & 0xff0000) + ((*p >> 8) & 0xff00) + (*p >> 24); + p++; + } } _xr_image_put(xim, gr->surface->draw, 0, 0, w, h); evas_common_image_free(im); -- 2.7.4