diff options
Diffstat (limited to 'plugins/AdvaImg/src')
-rw-r--r-- | plugins/AdvaImg/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/AdvaImg/src/main.cpp b/plugins/AdvaImg/src/main.cpp index 83b092a59a..9c7bdb698a 100644 --- a/plugins/AdvaImg/src/main.cpp +++ b/plugins/AdvaImg/src/main.cpp @@ -759,7 +759,7 @@ extern "C" BOOL __declspec(dllexport) dib2mempng( BITMAPINFO* pbmi, png_byte* pD } }
else {
for ( j = 0; j < pbmi->bmiHeader.biWidth; j++ ) {
- DWORD point;
+ DWORD point = 0;
if ( ciChannels == 1 ) {
*d++ = ( BYTE )( point & 0x03 ) << 6;
*d++ = ( BYTE )(( point & 0x0C ) >> 2 ) << 6;
@@ -772,7 +772,7 @@ extern "C" BOOL __declspec(dllexport) dib2mempng( BITMAPINFO* pbmi, png_byte* pD *d++ = ( BYTE )(( point & 0x001F ) << 3 );
*d++ = ( BYTE )((( point & 0x07e0 ) >> 6 ) << 3 );
*d++ = ( BYTE )((( point & 0xF800 ) >> 11 ) << 3 );
- } } } }
+ } } } }
png_write_image (png_ptr, ppbRowPointers);
png_write_end(png_ptr, info_ptr);
|