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,8 +157,11 @@ void CtrlText::draw( OSGraphics &rImage, int xDest, int yDest ) ...@@ -157,8 +157,11 @@ void CtrlText::draw( OSGraphics &rImage, int xDest, int yDest )
getPosition()->getWidth() ); getPosition()->getWidth() );
int height = min( m_pCurrImg->getHeight(), getPosition()->getHeight() ); int height = min( m_pCurrImg->getHeight(), getPosition()->getHeight() );
// Draw the current image // Draw the current image
rImage.drawBitmap( *m_pCurrImg, -m_xPos, 0, xDest, yDest, if( width > 0 && height > 0 )
width, height ); {
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