Here is a slow c version, probably not much help.
void brez_line256( int x1, int y1, int x2, int y2, dword colour, dword* pbuffer )
{
int i;
int dx, dy;
int incx, incy;
int xerr = 0, yerr = 0;
int dist;
dx = x2 - x1;
dy = y2 - y1;
if( dx > 0 )
incx = 1;
else
incx = -1;
if( dy > 0...