[GB.IMAGE]

* BUG: Image.PaintImage() incorrectly handled alpha channel compositing.


git-svn-id: svn://localhost/gambas/trunk@3926 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2011-07-05 10:19:24 +00:00
parent 7c27920e3f
commit e6a904c445

View file

@ -1096,9 +1096,9 @@ void IMAGE_compose(GB_IMG *dst, int dx, int dy, int dw, int dh, GB_IMG *src, int
d[0] = ((s[0] - d[0]) * a) / 256 + d[0];
d[1] = ((s[1] - d[1]) * a) / 256 + d[1];
d[2] = ((s[2] - d[2]) * a) / 256 + d[2];
if (d[3] < a)
if (d[3] > a)
d[3] = a;
}
}
d += 4;
s += 4;
}