X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=37eb4c5ea12d2fcb244836615f4c4ea949bb4c08;hp=cb51780ce37dfdb4b39f0a993010f08a9636e9c5;hb=c1029b14c3fde9c98d524f17201364c695b6b117;hpb=a563d2f0efaa980af0f0b39cdf1c9115fed99d00 diff --git a/src/gfxutil.c b/src/gfxutil.c index cb51780..37eb4c5 100644 --- a/src/gfxutil.c +++ b/src/gfxutil.c @@ -149,20 +149,21 @@ void draw_line(int x0, int y0, int x1, int y1, unsigned short color) int sum = sptr[0] * (rad + 1); \ int count = (rad * 2 + 1) << 8; \ int midsize = w - rad * 2; \ + int firstpix = sptr[0]; \ int lastpix = sptr[pstep * (w - 1)]; \ /* add up the contributions for the -1 pixel */ \ for(j=0; j