mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 03:20:33 +01:00
cocoa: implement ETO_CLIPPED option in ExtTextOut
git-svn-id: trunk@34421 -
This commit is contained in:
parent
a991d939dd
commit
e0bf8626c8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user