# HG changeset patch # User Sam Lantinga # Date 1234418514 0 # Node ID 9f2482d6662c7a1be26088a30db52703e883202d # Parent e2bb8ab7b43f3a840a6d2170b6f7f39ff5ea01b3 Fixed off by one error in line drawing code diff -r e2bb8ab7b43f -r 9f2482d6662c 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; \