X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fgfxutil.c;h=a8d7edce8387d364e949b112053bf81ae70d961b;hp=cb51780ce37dfdb4b39f0a993010f08a9636e9c5;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hpb=a563d2f0efaa980af0f0b39cdf1c9115fed99d00 diff --git a/src/gfxutil.c b/src/gfxutil.c index cb51780..a8d7edc 100644 --- a/src/gfxutil.c +++ b/src/gfxutil.c @@ -1,3 +1,4 @@ +#include #include "gfxutil.h" #include "demo.h" @@ -149,20 +150,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