Commit 5bbca7b8 authored by Olivier Teulière's avatar Olivier Teulière

* skins2: Do not try anymore to display images whose width is 0.

   This avoids warnings at run-time on Windows.
parent e6b40c6c
......@@ -157,9 +157,12 @@ void CtrlText::draw( OSGraphics &rImage, int xDest, int yDest )
getPosition()->getWidth() );
int height = min( m_pCurrImg->getHeight(), getPosition()->getHeight() );
// Draw the current image
if( width > 0 && height > 0 )
{
rImage.drawBitmap( *m_pCurrImg, -m_xPos, 0, xDest, yDest,
width, height );
}
}
}
......
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