Fixed off by one error in line drawing code
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Feb 2009 06:01:54 +0000
changeset 30639f2482d6662c
parent 3062 e2bb8ab7b43f
child 3064 044ccc2c7485
Fixed off by one error in line drawing code
src/video/SDL_draw.h
     1.1 --- a/src/video/SDL_draw.h	Mon Feb 09 06:45:03 2009 +0000
     1.2 +++ b/src/video/SDL_draw.h	Thu Feb 12 06:01:54 2009 +0000
     1.3 @@ -325,7 +325,7 @@
     1.4      x = x1; \
     1.5      y = y1; \
     1.6   \
     1.7 -    for (i = 1; i < numpixels; ++i) { \
     1.8 +    for (i = 0; i < numpixels; ++i) { \
     1.9          op(x, y); \
    1.10          if (d < 0) { \
    1.11              d += dinc1; \