summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-07-27 13:53:35 +1000
committerquou <quou@disroot.org>2024-07-27 13:53:35 +1000
commit629a24052f77529cc306cbd355f57a48ba3ff49d (patch)
treefe1919dfc5f2d5b0e7247d2ef88b6fa71bbc9924
parent951f6115c16c3ab482c19705344295c90af1625b (diff)
Fix ren_line
-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;