mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
Painter: Fixed issue in SpanFiller
git-svn-id: svn://ultimatepp.org/upp/trunk@10799 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f2e869b43c
commit
d3418eae04
1 changed files with 6 additions and 2 deletions
|
|
@ -320,12 +320,16 @@ void SpanFiller::Render(int val, int len)
|
|||
const RGBA *e = t + len;
|
||||
if(alpha != 256)
|
||||
val = alpha * val >> 8;
|
||||
if(val == 256)
|
||||
for(int i=0; i < len; i++)
|
||||
if(val == 256) {
|
||||
for(int i=0; i < len; i++) {
|
||||
if(s[i].a == 255)
|
||||
t[i] = s[i];
|
||||
else
|
||||
AlphaBlend(t[i], s[i]);
|
||||
}
|
||||
t += len;
|
||||
s += len;
|
||||
}
|
||||
else
|
||||
while(t < e)
|
||||
AlphaBlendCover8(*t++, *s++, val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue