Get alpha line stride so that we don't produce the wrong alpha mask

This commit is contained in:
kipp%netscape.com 1999-02-26 16:57:54 +00:00
parent 52a6310f37
commit 6890be3ab5

View File

@ -117,6 +117,7 @@ ImageRendererImpl::NewPixmap(void* aDisplayContext,
NS_ADDREF(img);
aMask->header.width = aWidth;
aMask->header.height = aHeight;
aMask->header.widthBytes = img->GetAlphaLineStride();
}
// Replace the existing color space with the color space associated