mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Bug 285048 nsImageWin::ConvertDDBtoDIB uses wrong color depth
r=ere sr=roc
This commit is contained in:
parent
3d0f288895
commit
9ba5078538
@ -1678,7 +1678,7 @@ nsImageWin::ConvertDDBtoDIB()
|
||||
if (nsnull != mBHead){
|
||||
delete[] mBHead;
|
||||
}
|
||||
BuildDIB(&mBHead,tWidth,tHeight,srcinfo.bmBitsPixel,&mNumBytesPixel);
|
||||
BuildDIB(&mBHead,tWidth,tHeight,mNumBytesPixel * 8,&mNumBytesPixel);
|
||||
mRowBytes = CalcBytesSpan(mBHead->biWidth);
|
||||
mSizeImage = mRowBytes * mBHead->biHeight; // no compression
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user