2 #include "../vgavideo/vgavideo.h"
6 DrvLineTo(SURFOBJ *Surface,
16 // FIXME: Use ClipObj and RectBounds to clip the line where required
17 // FIXME: Use Mix to perform ROPs
20 LONG deltax, deltay, x, y, d, i, xchange, ychange, error, iSolidColor, hx, vy;
22 iSolidColor = Brush->iSolidColor; // FIXME: Brush Realization...
24 // FIXME: Implement clipping
59 return vgaHLine(hx, y1, deltax, iSolidColor);
63 return vgaVLine(x1, vy, deltay, iSolidColor);
66 // Using individual pixels to draw a line neither horizontal or vertical
67 // Set up the VGA masking for individual pixels
73 for (i = 0; i < deltay; i++)
75 vgaPutPixel(x, y, iSolidColor);
77 error = error + deltax;
82 error = error - deltay;
88 for (i = 0; i < deltax; i++)
90 vgaPutPixel(x, y, iSolidColor);
92 error = error + deltay;
96 error = error - deltax;