changeset 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 e2bb8ab7b43f
children 044ccc2c7485
files src/video/SDL_draw.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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; \