/drawline is not drawing the last pixel in a line.
alias drawtest {
window -fp +b @DT 0 0 8 8
drawline @DT 2 1 0 2 7 2
drawline @DT 3 1 5 0 5 7
drawline @DT 4 1 7 5 0 5
drawline @DT 8 1 2 7 2 0
}
Box A is the result, B is how it should be.
The red line is drawn left to right, green is top to bottom, red is right to left, and yellow is bottom to top. Each line is missing the last pixel. It seems to have been this way since v5.3.
This alias makes it work the way I expect:
alias drawline !drawline $1- | drawdot $deltok($1-,$+($iif(-* iswm $1,5,4),-,$calc($0 - 2)),32)