GUI: Keep dst alpha unchanged when blending colours
This commit is contained in:
parent
2957321903
commit
264ba4a9ec
1 changed files with 1 additions and 3 deletions
|
@ -524,9 +524,7 @@ blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) {
|
|||
(_blueMask & ((idst & _blueMask) +
|
||||
((int)(((int)(isrc & _blueMask) -
|
||||
(int)(idst & _blueMask)) * alpha) >> 8))) |
|
||||
(_alphaMask & ((idst & _alphaMask) +
|
||||
((alpha >> _format.aLoss) << _format.aShift) -
|
||||
(((int)(idst & _alphaMask) * alpha) >> 8))));
|
||||
(idst & _alphaMask));
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue