mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
lottieitem: Add alpha property in LOTMask
Change-Id: I929839c5a0a1677a530b5197e45ec230ea145dd1
This commit is contained in:
parent
1b8ce64af0
commit
576198f5db
@ -130,6 +130,8 @@ typedef struct LOTMask {
|
||||
int elmCount;
|
||||
} mPath;
|
||||
LOTMaskMode mMode;
|
||||
|
||||
int mAlpha;
|
||||
}LOTMask;
|
||||
|
||||
typedef enum
|
||||
|
||||
@ -230,6 +230,7 @@ void LOTLayerItem::buildLayerNode()
|
||||
cNode.mPath.ptCount = pts.size();
|
||||
cNode.mPath.elmPtr = elmPtr;
|
||||
cNode.mPath.elmCount = elm.size();
|
||||
cNode.mAlpha = mask.mCombinedAlpha * 255;
|
||||
switch (mask.maskMode()) {
|
||||
case LOTMaskData::Mode::Add:
|
||||
cNode.mMode = MaskModeAdd;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user