This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA3XEVM: Vision SDK 3.3: Clipping of Line Drawing Function

Part Number: TDA3XEVM

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.