Commit 91159d35 authored by Antoine Cellerier's avatar Antoine Cellerier

Don't render invisible text controls.

parent de57db9d
......@@ -216,7 +216,10 @@ void CtrlText::setText( const UString &rText, uint32_t color )
void CtrlText::onUpdate( Subject<VarText, void*> &rVariable, void* arg )
{
displayText( m_rVariable.get() );
if( isVisible() )
{
displayText( m_rVariable.get() );
}
}
......@@ -365,6 +368,7 @@ void CtrlText::CmdMove::execute()
void CtrlText::CmdUpdateText::execute()
{
fprintf( stderr, "%d\n", m_pParent->m_xPos );
m_pParent->m_xPos -= MOVING_TEXT_STEP;
m_pParent->adjust( m_pParent->m_xPos );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment