Skip to content

Commit

Permalink
minor changes to color normalization function
Browse files Browse the repository at this point in the history
  • Loading branch information
untoxa committed Feb 4, 2021
1 parent 86f6e74 commit 18ef43a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gbcomp/Gbconst.pas
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ function NormalizeClipColor(cIn : TColor): TColor;
Result:= cIn;
end else begin
case (byte(RgbToGray(cIn)) SHR 6) of
0 : Result := clBlack;
1 : Result := clDkGray;
2 : Result := clLtGray;
3 : Result := clWhite;
0 : Result := clBlack;
1 : Result := clDkGray;
2 : Result := clLtGray;
else Result := clWhite;
end;
end;
end;
Expand Down

0 comments on commit 18ef43a

Please sign in to comment.