Permalink
Browse files

ensure we use a clean state for fade out transform in textbox - fixes #…

  • Loading branch information...
Jonathan Marshall
Jonathan Marshall committed Jun 29, 2011
1 parent b89e0c8 commit 4abfbd74b77daa1bcde8d1b35fbff4c992cd1883
Showing with 3 additions and 3 deletions.
  1. +3 −2 xbmc/guilib/GUITextBox.cpp
  2. +0 −1 xbmc/guilib/GUITextBox.h
@@ -114,8 +114,9 @@ void CGUITextBox::DoProcess(unsigned int currentTime, CDirtyRegionList &dirtyreg
if (m_autoScrollRepeatAnim)
{
m_autoScrollRepeatAnim->Animate(m_renderTime, true);
- m_autoScrollRepeatAnim->RenderAnimation(m_textMatrix);
- m_cachedTextMatrix = g_graphicsContext.AddTransform(m_textMatrix);
+ TransformMatrix matrix;
+ m_autoScrollRepeatAnim->RenderAnimation(matrix);
+ m_cachedTextMatrix = g_graphicsContext.AddTransform(matrix);
}
CGUIControl::DoProcess(currentTime, dirtyregions);
View
@@ -86,7 +86,6 @@ class CGUITextBox : public CGUIControl, public CGUITextLayout
CLabelInfo m_label;
- TransformMatrix m_textMatrix;
TransformMatrix m_cachedTextMatrix;
// autoscrolling

0 comments on commit 4abfbd7

Please sign in to comment.