DTM area (for middle dot) errors noticed
Whenever you have your middle dot on your DTM with a area of more than 1(using findDTM function), it seems that it ignores the area you set completely when it does its screen check (I had set the middle dot to an area of 10, and it picked up 2 pixel items), as well as it is offsetting the wrong direction in the return (since I have an area of 10, its offset -5 pixels on each axis when it should be +5, so that it returns the centre of the square), these are noticed effects, I have not looked at the source code. if I had to guess what it looks like, it would be
Simba Code:
Procedure FindDTM(dtm,x,y,ae,be,ce,de);
var
middotpos : TPoint;
begin
middotpos := findcolortolerance(dtm[middledot],1,dtmtolerance);
// finish finding other dots
Result := middotpos - Point(dotsize,dotsize);
Exit;
end;
when it should be something like
Simba Code:
Procedure FindDTM(dtm,x,y,ae,be,ce,de);
var
middotpos : TPoint;
begin
middotpos := findcolortolerance(dtm[middledot], dotsize,dtmtolerance);
// finish finding other dots
Result := middotpos + Point(dotsize,dotsize);
Exit;
end;