Remove incorrect test in __imlib_copy_alpha_data() (Victor Paesa - bug 475).

SVN revision: 34504
This commit is contained in:
Kim Woelders 2008-05-07 21:41:44 +00:00
parent 8571e8798c
commit 3c8de2fbef
1 changed files with 13 additions and 16 deletions

View File

@ -603,20 +603,17 @@ __imlib_copy_alpha_data(ImlibImage * src, ImlibImage * dst, int x, int y,
/* the pointer jump between lines */
jump = (src->w - w);
jump2 = (dst->w - w);
/* copy forwards */
if (p2 < p1)
{
/* work our way thru the array */
for (yy = 0; yy < h; yy++)
{
for (xx = 0; xx < w; xx++)
{
*p2 = (*p1 & 0xff000000) | (*p2 & 0x00ffffff);
p1++;
p2++;
}
p1 += jump;
p2 += jump2;
}
}
/* work our way thru the array */
for (yy = 0; yy < h; yy++)
{
for (xx = 0; xx < w; xx++)
{
*p2 = (*p1 & 0xff000000) | (*p2 & 0x00ffffff);
p1++;
p2++;
}
p1 += jump;
p2 += jump2;
}
}