mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 03:18:41 +00:00
Get alpha line stride so that we don't produce the wrong alpha mask
This commit is contained in:
parent
52a6310f37
commit
6890be3ab5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user