[vlc-commits] skins2: cosmetic

Erwan Tulou git at videolan.org
Sat Apr 6 14:50:09 CEST 2013


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Apr  5 22:24:43 2013 +0200| [b8330f3aad326401afe964d18a0cb65279181cf5] | committer: Erwan Tulou

skins2: cosmetic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8330f3aad326401afe964d18a0cb65279181cf5
---

 modules/gui/skins2/controls/ctrl_slider.cpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/skins2/controls/ctrl_slider.cpp b/modules/gui/skins2/controls/ctrl_slider.cpp
index 7ff8974..4008624 100644
--- a/modules/gui/skins2/controls/ctrl_slider.cpp
+++ b/modules/gui/skins2/controls/ctrl_slider.cpp
@@ -327,8 +327,8 @@ CtrlSliderBg::CtrlSliderBg( intf_thread_t *pIntf,
         // TODO: we should probably change this assumption, as it would make
         // the code a bit simpler and it would be more natural for the skins
         // designers
-        m_bgWidth = (pBackground->getWidth() + m_padHoriz) / nbHoriz;
-        m_bgHeight = (pBackground->getHeight() + m_padVert) / nbVert;
+        m_bgWidth = (pBackground->getWidth() + m_padHoriz) / m_nbHoriz;
+        m_bgHeight = (pBackground->getHeight() + m_padVert) / m_nbVert;
 
         // Observe the position variable
         m_rVariable.addObserver( this );
@@ -361,7 +361,7 @@ bool CtrlSliderBg::mouseOver( int x, int y ) const
 
 void CtrlSliderBg::draw( OSGraphics &rImage, int xDest, int yDest, int w, int h )
 {
-    if( !m_pImgSeq || m_bgWidth <=0 || m_bgHeight <= 0 )
+    if( !m_pImgSeq || m_bgWidth <= 0 || m_bgHeight <= 0 )
         return;
 
     // Compute the resize factors



More information about the vlc-commits mailing list