mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 05:39:17 +02:00
added support for TCarbonDeviceContext.Draw dx-array parameter
git-svn-id: trunk@20023 -
This commit is contained in:
parent
095f1262a5
commit
37d924f53b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user