fixed a blending bug

This commit is contained in:
p989 2009-07-12 04:55:58 +00:00
parent 9c6426aae4
commit e5979f2bc1
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ namespace agg
calc_type b = (rgb >> 10) & 31;
calc_type g = (rgb >> 5) & 31;
calc_type r = (rgb ) & 31;
b = ((r+1)*(alpha+1) + (cb)*(cover)-1)>>8;
b = ((b+1)*(alpha+1) + (cb)*(cover)-1)>>8;
g = ((g+1)*(alpha+1) + (cg)*(cover)-1)>>8;
r = ((b+1)*(alpha+1) + (cr)*(cover)-1)>>8;
r = ((r+1)*(alpha+1) + (cr)*(cover)-1)>>8;
*p = (b<<10)|(g<<5)|r;
}