From 273bb584e1af7a90d3e937c18d8f947969dda70d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 12 Feb 2009 06:01:54 +0000 Subject: [PATCH] Fixed off by one error in line drawing code --- src/video/SDL_draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_draw.h b/src/video/SDL_draw.h index b1ae34008..27165c663 100644 --- a/src/video/SDL_draw.h +++ b/src/video/SDL_draw.h @@ -325,7 +325,7 @@ do { \ x = x1; \ y = y1; \ \ - for (i = 1; i < numpixels; ++i) { \ + for (i = 0; i < numpixels; ++i) { \ op(x, y); \ if (d < 0) { \ d += dinc1; \