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