loader/lottie: fix a default color of the solid layer.

we assume the default color is black.
before this fix, the value is not designated properly.
This commit is contained in:
Hermet Park 2023-08-30 16:10:29 +09:00
parent ce5ac1c114
commit c23c556f61
2 changed files with 2 additions and 2 deletions

View file

@ -393,7 +393,7 @@ struct LottieLayer : LottieGroup
int32_t remap(int32_t frameNo);
//Optimize: compact data??
RGB24 color = {255, 255, 255};
RGB24 color;
struct {
CompositeMethod type = CompositeMethod::None;

View file

@ -86,7 +86,7 @@ BlendMethod LottieParser::getBlendMethod()
RGB24 LottieParser::getColor(const char *str)
{
RGB24 color;
RGB24 color = {0, 0, 0};
if (!str) return color;