added support for TCarbonDeviceContext.Draw dx-array parameter

git-svn-id: trunk@20023 -
This commit is contained in:
dmitry 2009-05-18 04:37:51 +00:00
parent 095f1262a5
commit 37d924f53b

View File

@ -989,6 +989,8 @@ begin
theTag := kATSULayoutOperationOverrideTag;
theSize := sizeof (ATSULayoutOperationOverrideSpecifier);
theValue := @OverSpec;
ATSUSetTextLayoutRefCon(FLayout, UInt32(Self));
ATSUSetLayoutControls (FLayout, 1, @theTag, @theSize, @theValue);
end;
if OSError(ATSUDrawText(FLayout, kATSUFromTextBeginning, kATSUToTextEnd,
@ -999,6 +1001,7 @@ begin
DisposeATSUDirectLayoutOperationOverrideUPP(OverSpec.overrideUPP);
OverSpec.overrideUPP := nil;
ATSUSetLayoutControls (FLayout, 1, @theTag, @theSize, @theValue);
fDX := nil;
end;
Result := True;