comparison Gui/bitmap/png/png.c @ 4237:1c9bca9154fd

'40bit' - es png nincs is :)
author pontscho
date Fri, 18 Jan 2002 12:26:57 +0000
parents d237c5d4b216
children 3473ca9ef158
comparison
equal deleted inserted replaced
4236:0c809c541aa1 4237:1c9bca9154fd
111 #endif 111 #endif
112 return 1; 112 return 1;
113 } 113 }
114 bf->Width=raw.Width; 114 bf->Width=raw.Width;
115 bf->Height=raw.Height; 115 bf->Height=raw.Height;
116 bf->BPP=( raw.Depth * raw.Components ) + raw.Alpha; 116 bf->BPP=( raw.Depth * raw.Components );
117 bf->ImageSize=bf->Width * bf->Height * ( bf->BPP / 8 ); 117 bf->ImageSize=bf->Width * bf->Height * ( bf->BPP / 8 );
118 if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL ) 118 if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL )
119 { 119 {
120 #ifdef DEBUG 120 #ifdef DEBUG
121 dbprintf( 4,"[png] Not enough memory for image buffer.\n" ); 121 dbprintf( 4,"[png] Not enough memory for image buffer.\n" );