cocoa: fix RestoreDCData

git-svn-id: trunk@38778 -
This commit is contained in:
paul 2012-09-21 09:12:22 +00:00
parent a0823977cc
commit 12a20ff9fa
2 changed files with 3 additions and 3 deletions

View File

@ -1271,8 +1271,8 @@ begin
FWindowOfs := AData.WindowOfs;
FViewportOfs := AData.ViewportOfs;
// isClipped := AData.isClipped;
// FClipRegion.Shape := AData.ClipShape;
FClipped := AData.isClipped;
FClipRegion.Shape := AData.ClipShape;
end;
constructor TCocoaContext.Create;

View File

@ -1537,7 +1537,7 @@ begin
if Assigned(ctx) then
begin
Result := ctx.BkColor;
ctx.BkColor := Color;
ctx.BkColor := TColor(Color);
end
else
Result := CLR_INVALID;