From 560705e4b9cda9c11b4f0351659d6a922a239673 Mon Sep 17 00:00:00 2001 From: "sergei_d%fi.tartu.ee" Date: Wed, 15 Feb 2006 15:32:20 +0000 Subject: [PATCH] [BeOS]Bug 327197. Fixing corrupted alpha in iconChannel.r=sergei_d, BeOS-only --- modules/libpr0n/decoders/icon/beos/nsIconChannel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/libpr0n/decoders/icon/beos/nsIconChannel.cpp b/modules/libpr0n/decoders/icon/beos/nsIconChannel.cpp index c7d182a0d2bc..605838bf1c88 100644 --- a/modules/libpr0n/decoders/icon/beos/nsIconChannel.cpp +++ b/modules/libpr0n/decoders/icon/beos/nsIconChannel.cpp @@ -353,7 +353,7 @@ nsresult nsIconChannel::MakeInputStream(nsIInputStream** _retval, PRBool nonBloc // Alpha data - bitmask, with rows aligned on 32-bit boundaries for(PRUint32 iconRow = 0; iconRow < iconSize; iconRow++) { - destByte = buffer + 2 + iconSize * iconSize * 3 + iconRow * alphaBytesPerRow; + destByte = buffer + 3 + iconSize * iconSize * 3 + iconRow * alphaBytesPerRow; sourceByte = (uint8*)nativeIcon.Bits() + nativeIcon.BytesPerRow() * iconRow; int bitNo = 0; for(PRUint32 iconCol = 0; iconCol < iconSize; iconCol++)