зеркало из https://github.com/mozilla/pjs.git
turns out you can't index in to an int
This commit is contained in:
Родитель
0647569fa9
Коммит
1ec7fcbd93
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче