]> git.sesse.net Git - vlc/commitdiff
skins2: cosmetic
authorErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 20:24:43 +0000 (22:24 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sat, 6 Apr 2013 12:46:51 +0000 (14:46 +0200)
modules/gui/skins2/controls/ctrl_slider.cpp

index 7ff8974734632b3235513badeae79eb4e809ad10..4008624b2089d5b292b3732dc74ed41402b7446c 100644 (file)
@@ -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