doh! forgot to reset the baseAddr of the pixmaps after re-locking the handles in ConvertToPICT. Thanks lordpixel@mac.com. r=saari/sr=sfraser.

This commit is contained in:
pinkerton%netscape.com 2001-02-14 03:24:10 +00:00
Родитель 9297191086
Коммит 5fdfb75172
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -678,6 +678,14 @@ nsImageMac :: ConvertToPICT ( PicHandle* outPicture )
if (tempPixMap) {
StPixelLocker tempPixLocker(tempPixMap); // locks the pixels
// the handles may have moved, make sure we reset baseAddr of our
// pixmaps to the new pointer.
StHandleLocker imageBitsLocker(mImageBitsHandle);
StHandleLocker maskBitsLocker(mMaskBitsHandle); // ok with nil handle
mImagePixmap.baseAddr = *mImageBitsHandle;
if (mMaskBitsHandle)
mMaskPixmap.baseAddr = *mMaskBitsHandle;
// copy from the destination into our temp GWorld, to get the background
if (mMaskBitsHandle) {
if (mAlphaDepth > 1)