Fix for tiled images that with optimized images. r=kmmclusk sr=buster b=45100

This commit is contained in:
dcone%netscape.com 2000-10-17 21:18:40 +00:00
Родитель 1fefa124a2
Коммит 3c15c15513
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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);