Commit 077e3753 authored by gbazin's avatar gbazin
Browse files

* modules/gui/skins2/src/png_bitmap.cpp: compilation fix.

parent 6314367b
...@@ -49,10 +49,10 @@ PngBitmap::PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler, ...@@ -49,10 +49,10 @@ PngBitmap::PngBitmap( intf_thread_t *pIntf, image_handler_t *pImageHandler,
{ {
for( int x = 0; x < m_width; x++ ) for( int x = 0; x < m_width; x++ )
{ {
uint32_t b = (uint32_t)*(pData++) = (uint32_t)*(pSrc++); uint32_t b = *(pData++) = *(pSrc++);
uint32_t g = (uint32_t)*(pData++) = (uint32_t)*(pSrc++); uint32_t g = *(pData++) = *(pSrc++);
uint32_t r = (uint32_t)*(pData++) = (uint32_t)*(pSrc++); uint32_t r = *(pData++) = *(pSrc++);
(uint32_t)*pData = (uint32_t)*pSrc; *pData = *pSrc;
// Transparent pixel ? // Transparent pixel ?
if( aColor == (r<<16 | g<<8 | b) ) *pData = 0; if( aColor == (r<<16 | g<<8 | b) ) *pData = 0;
......
Supports Markdown
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