Cocoa: Fix not working framerect call

git-svn-id: trunk@43958 -
This commit is contained in:
freq 2014-02-08 18:17:20 +00:00
parent 7d53b0d01b
commit 7b11f22871

View File

@ -1769,13 +1769,7 @@ end;
procedure TCocoaContext.FrameRect(const ARect: TRect; const ABrush: TCocoaBrush);
begin
if ABrush <> Brush then
ABrush.Apply(Self);
if not ctx.currentContextDrawingToScreen then
ctx.setCurrentContext(ctx);
NSFrameRect(RectToNSRect(ARect));
if ABrush <> Brush then
Brush.Apply(Self);
Rectangle(Arect.Left,ARect.Top,Arect.Right,ARect.Bottom, False, ABrush);
end;
procedure TCocoaContext.SetCGFillping(Ctx: CGContextRef; Width, Height: CGFloat);