mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GUI: Keep dst alpha unchanged when blending colours
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user