turns out you can't index in to an int

git-svn-id: svn://10.0.0.236/trunk@192978 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net
2006-03-25 04:55:19 +00:00
parent 1f8a8bbc2f
commit dbce87cd81

View File

@@ -155,7 +155,7 @@ NS_IMETHODIMP nsIconDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR
const PRUint8 r = *rowdata++;
const PRUint8 g = *rowdata++;
const PRUint8 b = *rowdata++;
const PRUint8 a = (format == gfxIFormats::RGB_A1) ? abpr[i>>3] : abpr[i];
const PRUint8 a = (format == gfxIFormats::RGB_A1) ? adata[i>>3] : adata[i];
#ifdef IS_LITTLE_ENDIAN
// BGRX
*row++ = b;