]> git.sesse.net Git - vlc/commitdiff
skins2: fix initial text state to reflect documentation
authorErwan Tulou <erwan10@videolan.org>
Mon, 1 Apr 2013 10:15:08 +0000 (12:15 +0200)
committerErwan Tulou <erwan10@videolan.org>
Mon, 1 Apr 2013 10:24:10 +0000 (12:24 +0200)
In the Web documentation, it reads "text automatically starts scrolling" in automatic mode.

modules/gui/skins2/controls/ctrl_text.cpp

index 61d41ae97e42f741950a6525aad951d39ca3d531..3f637cdd2190338b9cf07cbfefa37436eca7a984 100644 (file)
@@ -91,7 +91,7 @@ CtrlText::CtrlText( intf_thread_t *pIntf, VarText &rVariable,
     }
 
     // Initial state
-    m_fsm.setState( "outStill" );
+    m_fsm.setState( (m_scrollMode != kAutomatic) ? "outStill" : "outMoving" );
 
     // Observe the variable
     m_rVariable.addObserver( this );