Commit 5854a6db authored by Olivier Teulière's avatar Olivier Teulière

* skins2/controls/ctrl_slider.cpp: Suppose that the last-padding is not in the

   bitmap (this is more flexible than the contrary)
parent 03909c33
...@@ -352,8 +352,8 @@ CtrlSliderBg::CtrlSliderBg( intf_thread_t *pIntf, CtrlSliderCursor &rCursor, ...@@ -352,8 +352,8 @@ CtrlSliderBg::CtrlSliderBg( intf_thread_t *pIntf, CtrlSliderCursor &rCursor,
pBackground->getHeight() ); pBackground->getHeight() );
m_pImgSeq->drawBitmap( *pBackground, 0, 0 ); m_pImgSeq->drawBitmap( *pBackground, 0, 0 );
m_bgWidth = pBackground->getWidth() / nbHoriz; m_bgWidth = (pBackground->getWidth() + m_padHoriz) / nbHoriz;
m_bgHeight = pBackground->getHeight() / nbVert; m_bgHeight = (pBackground->getHeight() + m_padVert) / nbVert;
// Observe the position variable // Observe the position variable
m_rVariable.addObserver( this ); m_rVariable.addObserver( this );
......
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