Carbon implementation SelectClipRGN

git-svn-id: trunk@20626 -
This commit is contained in:
dmitry 2009-06-14 20:42:20 +00:00
parent 92e7669048
commit d0eafc69e3

View File

@ -2827,7 +2827,11 @@ end;
function TCarbonWidgetSet.SelectClipRGN(DC: hDC; RGN: HRGN): Longint;
begin
Result:=inherited SelectClipRGN(DC, RGN);
Result := 0;
if (DC = 0) or (RGN = 0) then Exit;
TCarbonRegion(RGN).Apply( TCarbonContext(DC) );
Result := 0;
end;
{------------------------------------------------------------------------------