Fix warning. First compute value, then increment pointer.

SVN revision: 27591
This commit is contained in:
Sebastian Dransfeld 2006-12-28 12:47:33 +00:00
parent edde5b3088
commit a7b8ca4e85
1 changed files with 4 additions and 1 deletions

View File

@ -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);