From 33d3df9db41615cb56ca608fe01233adca06f209 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 10 Oct 2021 18:28:00 +0200 Subject: [PATCH] (Windows) Fixed some MSVC compiler warnings. --- .../src/components/ScrollIndicatorComponent.h | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/es-core/src/components/ScrollIndicatorComponent.h b/es-core/src/components/ScrollIndicatorComponent.h index 04ef00143..c378e2bc7 100644 --- a/es-core/src/components/ScrollIndicatorComponent.h +++ b/es-core/src/components/ScrollIndicatorComponent.h @@ -92,8 +92,9 @@ public: scrollUp->setOpacity( static_cast(glm::mix(0.0f, 1.0f, t) * 255)); }; - scrollUp->setAnimation(new LambdaAnimation(upFadeInFunc, fadeInTime), 0, - nullptr, false); + scrollUp->setAnimation( + new LambdaAnimation(upFadeInFunc, static_cast(fadeInTime)), 0, nullptr, + false); } if (upFadeOut) { @@ -101,8 +102,9 @@ public: scrollUp->setOpacity( static_cast(glm::mix(0.0f, 1.0f, t) * 255)); }; - scrollUp->setAnimation(new LambdaAnimation(upFadeOutFunc, fadeInTime), 0, - nullptr, true); + scrollUp->setAnimation( + new LambdaAnimation(upFadeOutFunc, static_cast(fadeInTime)), 0, + nullptr, true); } if (downFadeIn) { @@ -110,8 +112,9 @@ public: scrollDown->setOpacity( static_cast(glm::mix(0.0f, 1.0f, t) * 255)); }; - scrollDown->setAnimation(new LambdaAnimation(downFadeInFunc, fadeInTime), 0, - nullptr, false); + scrollDown->setAnimation( + new LambdaAnimation(downFadeInFunc, static_cast(fadeInTime)), 0, + nullptr, false); } if (downFadeOut) { @@ -119,8 +122,9 @@ public: scrollDown->setOpacity( static_cast(glm::mix(0.0f, 1.0f, t) * 255)); }; - scrollDown->setAnimation(new LambdaAnimation(downFadeOutFunc, fadeInTime), 0, - nullptr, true); + scrollDown->setAnimation( + new LambdaAnimation(downFadeOutFunc, static_cast(fadeInTime)), 0, + nullptr, true); } mPreviousScrollState = state;