mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 08:50:24 +00:00
lottie: fix doubled scale issue
The scale was calculated based on length 2. So, its result was also doubled. It should be half before return scale result. Change-Id: I66a5fa9ba235bd5ebcde89b9b3c01c0f128d217e
This commit is contained in:
parent
2e59b9fb93
commit
386e6ebbff
@ -875,7 +875,7 @@ static float getScale(const VMatrix &matrix)
|
||||
p2 = matrix.map(p2);
|
||||
VPointF final = p2 - p1;
|
||||
|
||||
return std::sqrt(final.x() * final.x() + final.y() * final.y());
|
||||
return std::sqrt(final.x() * final.x() + final.y() * final.y()) / 2.0;
|
||||
}
|
||||
|
||||
void LOTStrokeItem::updateRenderNode()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user