mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-02 22:51:28 +01:00
dont decolorize background under gray icon
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
d91781b79e
commit
50faf1ae0a
@ -312,7 +312,7 @@ void XImage::Compose(const EG_RECT& OutPlace, const EG_RECT& InPlace, const XIma
|
||||
Temp = (CompPtr->Red * TempAlpha) + (Top.GetPixel(x + PosX, y + PosY).Red * TopAlpha);
|
||||
CompPtr->Red = (UINT8)(Temp / FinalAlpha);
|
||||
|
||||
if (gray) {
|
||||
if (gray && (TopAlpha != 0)) {
|
||||
Temp = ((UINT32)CompPtr->Blue + 2 * (UINT32)CompPtr->Red + 4 * (UINT32)CompPtr->Green) / 7;
|
||||
CompPtr->Blue = (UINT8)Temp;
|
||||
CompPtr->Red = (UINT8)Temp;
|
||||
|
Loading…
Reference in New Issue
Block a user