video_mixer: Better to use array syntax
This commit is contained in:
parent
127a93c293
commit
18e199bd7b
@ -63,10 +63,10 @@ BufferMixer::Merge(BBuffer *input, BBuffer *output) {
|
||||
c2 = *source++;
|
||||
c3 = *source++;
|
||||
alpha = *source++;
|
||||
*(destination) = ALPHABLEND(c1, *destination, alpha);
|
||||
*(destination+1) = ALPHABLEND(c2, *destination, alpha);
|
||||
*(destination+2) = ALPHABLEND(c3, *destination, alpha);
|
||||
*(destination+3) = 0x00;
|
||||
destination[0] = ALPHABLEND(c1, destination[0], alpha);
|
||||
destination[1] = ALPHABLEND(c2, destination[1], alpha);
|
||||
destination[2] = ALPHABLEND(c3, destination[2], alpha);
|
||||
destination[3] = 0x00;
|
||||
destination += 4;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user