[vlc-commits] skins2: fix initial text state to reflect documentation
Erwan Tulou
git at videolan.org
Mon Apr 1 12:25:55 CEST 2013
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Apr 1 12:15:08 2013 +0200| [64d1ed4e8900c902d3f1e4a29f8e835c09eb44e0] | committer: Erwan Tulou
skins2: fix initial text state to reflect documentation
In the Web documentation, it reads "text automatically starts scrolling" in automatic mode.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64d1ed4e8900c902d3f1e4a29f8e835c09eb44e0
---
modules/gui/skins2/controls/ctrl_text.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/skins2/controls/ctrl_text.cpp b/modules/gui/skins2/controls/ctrl_text.cpp
index 61d41ae..3f637cd 100644
--- a/modules/gui/skins2/controls/ctrl_text.cpp
+++ b/modules/gui/skins2/controls/ctrl_text.cpp
@@ -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 );
More information about the vlc-commits
mailing list