X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=b82a612089960b8fbb5fa3fec3ebca5c2183af6f;hp=cb51780ce37dfdb4b39f0a993010f08a9636e9c5;hb=95432d94ee6d5cd0c1f71c36b78e195f1b96892f;hpb=a6290d5ab0d369d6807bad92d05a4f38560bf111 diff --git a/src/gfxutil.c b/src/gfxutil.c index cb51780..b82a612 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