Just a notice:
In draw2d.c you will find inside the function Draw2D_drawLine(...) at line 428 the following construction to perform a kind of clipping,
when one of the coordinate value is outside the borders:
if(x1 > pObj->bufInfo.bufWidth)
x1 = pObj->bufInfo.bufWidth;
if(x2 > pObj->bufInfo.bufWidth)
x2 = pObj->bufInfo.bufWidth;
if(y1 >= pObj->bufInfo.bufHeight)
y1 = pObj->bufInfo.bufHeight;
if(y2 >= pObj->bufInfo.bufHeight)
y2 = pObj->bufInfo.bufHeight;
In general this cannot be ok, because it will change the line's slope in most cases.
Do I see this correctly and will this be corrected in one of the next releases?
Currently I'm helping me not drawing the line at all, if one of the points is outside,
what works, when drawing curves with small segments but is not a good solution.