Cocoa: Fix transparency bug on TImage

git-svn-id: trunk@43748 -
This commit is contained in:
freq 2014-01-17 08:47:43 +00:00
parent bd7db234e4
commit b7b6c05eac

View File

@ -1806,7 +1806,7 @@ begin
if (Msk <> nil) and (Msk.Image <> nil) then
begin
MskImage := Msk.CreateMaskImage(Bounds(XMsk, YMsk, SrcWidth, SrcHeight));
ImgRect := CGRectMake(0, 0, SrcWidth, SrcHeight);
ImgRect := CGRectMake(x, -y, SrcWidth, SrcHeight);
CGContextSaveGState(CGContext);
CGContextScaleCTM(CGContext, 1, -1);
CGContextTranslateCTM(CGContext, 0, -SrcHeight);