mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 17:18:17 +02:00
git-svn-id: trunk@40287 -
This commit is contained in:
parent
593c4d27df
commit
1fa926c402
@ -569,7 +569,7 @@ end;
|
||||
var
|
||||
ATSUDirectUPP : ATSUDirectLayoutOperationOverrideUPP = nil; //NewATSUDirectLayoutOperationOverrideUPP(@ATSUCallback)
|
||||
|
||||
function ATSUCallback(iCurrentOperation: ATSULayoutOperationSelector; iLineRef: ATSULineRef; iRefCon: UInt32; iOperationCallbackParameterPtr: UnivPtr;
|
||||
function ATSUCallback(iCurrentOperation: ATSULayoutOperationSelector; iLineRef: ATSULineRef; iRefCon: URefCon; iOperationCallbackParameterPtr: UnivPtr;
|
||||
var oCallbackStatus: ATSULayoutOperationCallbackStatus ): OSStatus; {$ifdef DARWIN}mwpascal;{$endif}
|
||||
var
|
||||
Buffer : TASTUITextLayout;
|
||||
|
@ -166,7 +166,7 @@ var
|
||||
screenshotImage: CGImageRef;
|
||||
lRect: CGRect;
|
||||
lScreenRawImage: TRawImage;
|
||||
lDataLength: Integer;
|
||||
lDataLength: SizeInt;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
@ -183,7 +183,7 @@ begin
|
||||
// Now copy the data
|
||||
ScreenImage.GetRawImage(lScreenRawImage, False);
|
||||
ARawImage.CreateData(False);
|
||||
lDataLength := Min(lScreenRawImage.DataSize, ARawImage.DataSize);
|
||||
lDataLength := Min(Int64(lScreenRawImage.DataSize), Int64(ARawImage.DataSize));
|
||||
System.Move(lScreenRawImage.Data^, ARawImage.Data^, lDataLength);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user