summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index c8b673b..d36d528 100644
--- a/render.c
+++ b/render.c
@@ -433,7 +433,7 @@ void ren_line(
) {
Line l;
init_line(&l, s, e);
- while (l.x != e[0] && l.y != e[1]) {
+ while (l.x != e[0] || l.y != e[1]) {
Colour* dst = &r->t[l.x + l.y * r->vp[0]];
if (l.x < r->clip[0] || l.y < r->clip[1]) goto step;
if (l.x >= r->clip[2] || l.y >= r->clip[3]) goto step;