Commit 60aae68d authored by Erwan Tulou's avatar Erwan Tulou

skins2: kill some warnings

parent 4ef240cf
......@@ -50,10 +50,10 @@ void FT2Bitmap::draw( const FT_Bitmap &rBitmap, int left, int top,
uint8_t green = (color >> 8) & 0xff;
uint8_t red = (color >> 16) & 0xff;
for( int y = top; y < top + rBitmap.rows && y < m_height; y++ )
for( unsigned y = top; y < top + rBitmap.rows && y < m_height; y++ )
{
uint8_t *pData = m_pData + 4 * (m_width * y + left);
for( int x = left; x < left + rBitmap.width && x < m_width; x++ )
for( unsigned x = left; x < left + rBitmap.width && x < m_width; x++ )
{
// The buffer in FT_Bitmap contains alpha values
uint8_t val = *(pBuf++);
......
......@@ -56,7 +56,7 @@ public:
private:
/// Bitmap size
int m_width, m_height;
unsigned int m_width, m_height;
/// Image data buffer
uint8_t *m_pData;
};
......
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