From 0021bee10465b08118e460d9bb3a84f77cc29afa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 7 Jan 2022 00:30:31 +0100 Subject: [PATCH] (Windows) Fixed two compiler warnings. --- es-core/src/components/LottieComponent.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/LottieComponent.cpp b/es-core/src/components/LottieComponent.cpp index 4b5a9d5d8..488cc9c60 100644 --- a/es-core/src/components/LottieComponent.cpp +++ b/es-core/src/components/LottieComponent.cpp @@ -152,7 +152,8 @@ void LottieComponent::render(const glm::mat4& parentTrans) glm::mat4 trans{parentTrans * getTransform()}; - mTexture->initFromPixels(&mBuffer2.at(mLastDisplayedFrame).at(0), mSize.x, mSize.y); + mTexture->initFromPixels(&mBuffer2.at(mLastDisplayedFrame).at(0), static_cast(mSize.x), + static_cast(mSize.y)); mTexture->bind(); if (!mSkipFrame) @@ -181,4 +182,4 @@ void LottieComponent::render(const glm::mat4& parentTrans) .count() << " ms"; } -}; +}