diff src/video/SDL_draw.h @ 3063:9f2482d6662c

Fixed off by one error in line drawing code
author Sam Lantinga <slouken@libsdl.org>
date Thu, 12 Feb 2009 06:01:54 +0000
parents bd518fc76f28
children 0267b8b1595c
line wrap: on
line diff
--- 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; \