mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 02:46:49 +00:00
GUI: Keep dst alpha unchanged when blending colours
This commit is contained in:
parent
2957321903
commit
264ba4a9ec
@ -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…
x
Reference in New Issue
Block a user