From: Adeel Kazmi Date: Fri, 15 Nov 2019 14:08:41 +0000 (+0000) Subject: Merge "DALi Version 1.4.46" into devel/master X-Git-Tag: dali_1.4.47~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=793a1473ad5743c13d8143f099e1de9ec76001ac;hp=ec0ce4b6d6b14d0462fb8cefdd8400d8ae3bb701 Merge "DALi Version 1.4.46" into devel/master --- diff --git a/dali-toolkit/internal/text/text-scroller.cpp b/dali-toolkit/internal/text/text-scroller.cpp index 8fba9b5..6ad85d4 100644 --- a/dali-toolkit/internal/text/text-scroller.cpp +++ b/dali-toolkit/internal/text/text-scroller.cpp @@ -301,11 +301,11 @@ void TextScroller::SetParameters( Actor scrollingTextActor, Renderer renderer, T DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextScroller::SetParameters horizontalAlign[%f], verticalAlign[%f]\n", horizontalAlign, verticalAlign ); - scrollingTextActor.RegisterProperty( "uTextureSize", textureSize ); - scrollingTextActor.RegisterProperty( "uHorizontalAlign", horizontalAlign ); - scrollingTextActor.RegisterProperty( "uVerticalAlign", verticalAlign ); - scrollingTextActor.RegisterProperty( "uGap", wrapGap ); - mScrollDeltaIndex = scrollingTextActor.RegisterProperty( "uDelta", 0.0f ); + shader.RegisterProperty( "uTextureSize", textureSize ); + shader.RegisterProperty( "uHorizontalAlign", horizontalAlign ); + shader.RegisterProperty( "uVerticalAlign", verticalAlign ); + shader.RegisterProperty( "uGap", wrapGap ); + mScrollDeltaIndex = shader.RegisterProperty( "uDelta", 0.0f ); float scrollAmount = std::max( textureSize.width, controlSize.width ); float scrollDuration = scrollAmount / mScrollSpeed; @@ -336,8 +336,9 @@ void TextScroller::StartScrolling( Actor scrollingTextActor, float scrollAmount, { DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextScroller::StartScrolling scrollAmount[%f] scrollDuration[%f], loop[%d] speed[%d]\n", scrollAmount, scrollDuration, loopCount, mScrollSpeed ); + Shader shader = mRenderer.GetShader(); mScrollAnimation = Animation::New( scrollDuration ); - mScrollAnimation.AnimateTo( Property( scrollingTextActor, mScrollDeltaIndex ), scrollAmount, TimePeriod( mLoopDelay, scrollDuration ) ); + mScrollAnimation.AnimateTo( Property( shader, mScrollDeltaIndex ), scrollAmount, TimePeriod( mLoopDelay, scrollDuration ) ); mScrollAnimation.SetEndAction( Animation::Discard ); mScrollAnimation.SetLoopCount( loopCount ); mScrollAnimation.FinishedSignal().Connect( this, &TextScroller::AutoScrollAnimationFinished );