cocoa: implement ETO_CLIPPED option in ExtTextOut

git-svn-id: trunk@34421 -
This commit is contained in:
paul 2011-12-26 11:16:40 +00:00
parent a991d939dd
commit e0bf8626c8

View File

@ -1453,6 +1453,13 @@ begin
Rectangle(Left, Top, Right, Bottom, True, BkBrush);
BkBrush.Solid := BrushSolid;
end;
if (Options and ETO_CLIPPED) <> 0 then
begin
CGContextBeginPath(CGContext);
CGContextAddRect(CGContext, RectToCGrect(Rect^));
CGContextClip(CGContext);
end;
end;
FillBg := not Assigned(Rect) and ((Options and ETO_OPAQUE) <> 0);