carbon: fix masked image drawin. bug #16498

git-svn-id: trunk@25554 -
This commit is contained in:
dmitry 2010-05-20 21:00:52 +00:00
parent 82f4023793
commit a8f9fab54f

View File

@ -1512,7 +1512,7 @@ begin
CGContextTranslateCTM(LayerContext, 0, -SrcHeight);
SetCGFillping(LayerContext, Width, Height);
if SubMask then CGContextClipToMask(LayerContext, ImgRect, MskImage);
if Assigned(MskImage) then CGContextClipToMask(LayerContext, ImgRect, MskImage);
CGContextDrawImage(LayerContext, ImgRect, Image);
CGContextDrawLayerInRect(CGContext, DstRect, Layer);