Fixes for 18029 and 16723 -- fix image drawing on Mac to use GWorlds, and put in api to lock and unlock pixels. r=pnunn, a=chofmann.

This commit is contained in:
sfraser@netscape.com
1999-11-04 22:26:57 +00:00
parent c6e7d18b85
commit a9f23f9978
21 changed files with 729 additions and 273 deletions

View File

@@ -1929,8 +1929,7 @@ nsCSSRendering::PaintBackground(nsIPresContext& aPresContext,
xDistance = dirtyRect.width;
yDistance = dirtyRect.height;
// We need to render the background color if the image is transparent
PRUint8* alphaBits = image->GetAlphaBits();
needBackgroundColor = alphaBits != nsnull;
needBackgroundColor = image->GetHasAlphaMask();
break;
}