| WinLineExt | Function (ROM Call 0x47C)

AMS 2.00 or higher | wingraph.h

void WinLineExt (WINDOW *w, const WIN_RECT *Line);

Draws a line to a window, more accurately than WinLine when clipping.

WinLineExt acts like WinLine, except that clipping is done more smoothly and drawing is sometimes more accurate: instead of just clipping the coordinates to the window clipping area, as WinLine does, WinLineExt draws the line between the endpoints, drawing only the pixels that are in the window clipping area.
This can lead to little differences between a line drawn by WinLine and the same line drawn by WinLineExt.
The drawback is that WinLineExt is slower than WinLine.

Uses: PortRestore, RectWinToWin, ROM Call 0x413, ROM Call 0x47B, ROM Call 0x47E

See also: WinAttr, WinLine, WinLineRel, WinLineTo