Bug 611389 - Minefield 64-bit crash of NVIDIA driver [@ nvwgf2umx.dll@0x56f71a ]. r=bsmedberg a=blocking-beta8+
This commit is contained in:
@@ -74,11 +74,8 @@ void
|
||||
SharedDIBSurface::InitSurface(PRUint32 aWidth, PRUint32 aHeight,
|
||||
bool aTransparent)
|
||||
{
|
||||
// Windows DIBs are bottom-to-top by default, so the stride is negative
|
||||
// and the data is the beginning of the last row.
|
||||
long stride = -long(aWidth * kBytesPerPixel);
|
||||
long stride = long(aWidth * kBytesPerPixel);
|
||||
unsigned char* data = reinterpret_cast<unsigned char*>(mSharedDIB.GetBits());
|
||||
data -= (aHeight - 1) * stride;
|
||||
|
||||
gfxImageFormat format = aTransparent ? ImageFormatARGB32 : ImageFormatRGB24;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user