diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-24 04:50:42 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:21 +0100 |
commit | 555a9a424d8271fbde91c59432791d0ecd678913 (patch) | |
tree | 0e2752db70052d724df5fdbcab354cbe05b63ff9 /chart2 | |
parent | beed1e302954868bf95ff5d463c1a208ff9b488b (diff) |
fix regression from last warning cleaning
Change-Id: Id4f758a6d27670ff03d4e0c32a45ca66cc74d0c6
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/OpenGLRender.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index 92489c3a37c0..2ff2017670c3 100644 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -654,19 +654,19 @@ int OpenGLRender::RenderLine2FBO(int wholeFlag) BitmapEx aBmp; aBmp.SetSizePixel(Size(m_iWidth, m_iHeight)); - Bitmap aBitmap( aBmp.GetBitmap() ); - Bitmap aAlpha( aBmp.GetAlpha().GetBitmap() ); + Bitmap aBitmap( Size( m_iWidth, m_iHeight), 24 ); + Bitmap aAlpha( Size( m_iWidth, m_iHeight), 24 ); Bitmap::ScopedWriteAccess pWriteAccess( aBitmap ); Bitmap::ScopedWriteAccess pAlphaWriteAccess( aAlpha ); size_t nCurPos = 0; - for( int y = 0; y < m_iHeight; ++y) + for( size_t y = 0; y < m_iHeight; ++y) { Scanline pScan = pWriteAccess->GetScanline(y); Scanline pAlphaScan = pAlphaWriteAccess->GetScanline(y); - for( int x = 0; x < m_iWidth; ++x ) + for( size_t x = 0; x < m_iWidth; ++x ) { *pScan++ = buf[nCurPos]; *pScan++ = buf[nCurPos+1]; |