cocoa: fix range check errors

git-svn-id: trunk@38774 -
This commit is contained in:
paul 2012-09-21 06:47:56 +00:00
parent cffbf40c5f
commit bc0000f1f4
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;