[vlc-devel] commit: skins2: don't draw control if non visible at initialisation ( Erwan Tulou )
git version control
git at videolan.org
Tue Dec 29 18:37:56 CET 2009
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue Dec 29 14:49:45 2009 +0100| [fce620e81a52930ed108c5a2e029a3c2dff3a6c6] | committer: Erwan Tulou
skins2: don't draw control if non visible at initialisation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fce620e81a52930ed108c5a2e029a3c2dff3a6c6
---
modules/gui/skins2/src/generic_layout.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/skins2/src/generic_layout.cpp b/modules/gui/skins2/src/generic_layout.cpp
index 97bb03c..00edb2d 100644
--- a/modules/gui/skins2/src/generic_layout.cpp
+++ b/modules/gui/skins2/src/generic_layout.cpp
@@ -101,7 +101,8 @@ void GenericLayout::addControl( CtrlGeneric *pControl,
pControl->setLayout( this, rPosition );
// Draw the control
- pControl->draw( *m_pImage, rPosition.getLeft(), rPosition.getTop() );
+ if( pControl->isVisible() )
+ pControl->draw( *m_pImage, rPosition.getLeft(), rPosition.getTop() );
// Add the control in the list.
// This list must remain sorted by layer order
More information about the vlc-devel
mailing list