mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 22:00:18 +02:00
LCL-CustomDrawn-Cocoa: Fixes compilation and adds the screen format
git-svn-id: trunk@36582 -
This commit is contained in:
parent
110d17c70b
commit
68cb793270
@ -378,7 +378,7 @@ begin
|
||||
if (not ASkipMask) and (ARawImage.Mask <> nil) and (ARawImage.MaskSize > 0) then
|
||||
begin
|
||||
NewMaskData := GetMem(ARawImage.MaskSize);
|
||||
Move(ARawImage.Mask^, NewMaskData^, ARawImage.MaskSize);
|
||||
System.Move(ARawImage.Mask^, NewMaskData^, ARawImage.MaskSize);
|
||||
end
|
||||
else
|
||||
NewMaskData := nil;
|
||||
|
@ -156,6 +156,7 @@ begin
|
||||
ScreenDC := TLazCanvas.Create(ScreenImage);
|
||||
ScreenDC.NativeDC := PtrInt(TCocoaContext.Create);
|
||||
TCocoaContext(ScreenDC.NativeDC).cgctx := ScreenBitmapContext; //NSGraphicsContext.graphicsContextWithBitmapImageRep(ScreenBitmap.imagerep);
|
||||
ScreenFormat := clfRGB24UpsideDown;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user