aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Gui/bitmap/png/png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gui/bitmap/png/png.c b/Gui/bitmap/png/png.c
index 524796bedf..113a22b095 100644
--- a/Gui/bitmap/png/png.c
+++ b/Gui/bitmap/png/png.c
@@ -113,7 +113,7 @@ int pngRead( unsigned char * fname,txSample * bf )
}
bf->Width=raw.Width;
bf->Height=raw.Height;
- bf->BPP=( raw.Depth * raw.Components ) + raw.Alpha;
+ bf->BPP=( raw.Depth * raw.Components );
bf->ImageSize=bf->Width * bf->Height * ( bf->BPP / 8 );
if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL )
{