mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 18:10:39 +02:00
cocoa: fix range check errors
git-svn-id: trunk@38774 -
This commit is contained in:
parent
cffbf40c5f
commit
bc0000f1f4
@ -479,7 +479,8 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
function TCocoaWidgetSet.RawImage_DescriptionFromCocoaBitmap(out ADesc: TRawImageDescription; ABitmap: TCocoaBitmap): Boolean;
|
||||
var
|
||||
Prec, Shift, BPR: Byte;
|
||||
Prec, Shift: Byte;
|
||||
BPR: Integer;
|
||||
begin
|
||||
ADesc.Init;
|
||||
|
||||
|
@ -1646,7 +1646,7 @@ begin
|
||||
if Assigned(ctx) then
|
||||
begin
|
||||
Result := ctx.TextColor;
|
||||
ctx.TextColor := Color
|
||||
ctx.TextColor := TColor(Color);
|
||||
end
|
||||
else
|
||||
Result := CLR_INVALID;
|
||||
|
Loading…
Reference in New Issue
Block a user