Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed off by one error in line drawing code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 12, 2009
1 parent 6b8ebc0 commit 273bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_draw.h
Expand Up @@ -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; \
Expand Down

0 comments on commit 273bb58

Please sign in to comment.