forked from old/legacy-imlib2
Remove incorrect test in __imlib_copy_alpha_data() (Victor Paesa - bug 475).
SVN revision: 34504
This commit is contained in:
parent
8571e8798c
commit
3c8de2fbef
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue