зеркало из https://github.com/mozilla/gecko-dev.git
Fix for tiled images that with optimized images. r=kmmclusk sr=buster b=45100
This commit is contained in:
Родитель
1fefa124a2
Коммит
3c15c15513
|
@ -830,7 +830,12 @@ HBITMAP maskBits,tileBits,oldBits,oldMaskBits;
|
||||||
::StretchDIBits(offDC, 0, 0, aWidth, aHeight,0, 0, aWidth, aHeight, mImageBits,
|
::StretchDIBits(offDC, 0, 0, aWidth, aHeight,0, 0, aWidth, aHeight, mImageBits,
|
||||||
(LPBITMAPINFO)mBHead, 256 == mNumPaletteColors ? DIB_PAL_COLORS:DIB_RGB_COLORS, SRCCOPY);
|
(LPBITMAPINFO)mBHead, 256 == mNumPaletteColors ? DIB_PAL_COLORS:DIB_RGB_COLORS, SRCCOPY);
|
||||||
}else{
|
}else{
|
||||||
|
// need to select install this bitmap into this DC first
|
||||||
|
HBITMAP oldBits;
|
||||||
|
|
||||||
|
oldBits = (HBITMAP)::SelectObject(TheHDC, mHBitmap);
|
||||||
::BitBlt(offDC,0,0,aWidth,aHeight,TheHDC,0,0,SRCCOPY);
|
::BitBlt(offDC,0,0,aWidth,aHeight,TheHDC,0,0,SRCCOPY);
|
||||||
|
::SelectObject(TheHDC, oldBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
srcRect.SetRect(0,0,aWidth,aHeight);
|
srcRect.SetRect(0,0,aWidth,aHeight);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче