Skip to content

Commit

Permalink
Fixed FPC bugger with little trick.
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Jul 3, 2018
1 parent 4dd7d0a commit 545fe33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function TDetector.sizeOfBlackWhiteBlackRun(fromX: Integer; fromY: Integer;

dx := Abs(toX - fromX);
dy := Abs(toY - fromY);
error := TMathUtils.Asr(-dx, 1);
error := -1*TMathUtils.Asr(dx, 1);
if (fromX < toX) then
xstep := 1
else
Expand Down

0 comments on commit 545fe33

Please sign in to comment.