fixing drawImage bustage on windows with bgr_a8 images r=vlad a=brendan

This commit is contained in:
pavlov%pavlov.net 2005-05-08 01:33:33 +00:00
Родитель 2bb38d2cd5
Коммит 0d5fdd4b30
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1526,7 +1526,7 @@ nsCanvasRenderingContext2D::CairoSurfaceFromImageElement(nsIDOMHTMLImageElement
}
}
rv = NS_OK;
} else if (format == gfxIFormats::RGB_A8 || format == gfxIFormats::RGB_A8) {
} else if (format == gfxIFormats::RGB_A8 || format == gfxIFormats::BGR_A8) {
useBGR = (format & 1);
for (PRUint32 j = 0; j < (PRUint32) imgHeight; j++) {
PRUint8 *inrowrgb;