summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-02-27 11:14:05 -0800
committerEric Anholt <eric@anholt.net>2020-02-27 11:14:05 -0800
commitb235bae4c674b6ef4ac15a40b46000876bee9425 (patch)
tree933042958e2480e227137d69d7ee4cc060369598
parent76bb57d539cb43d267e561024c34e031bf351e04 (diff)
texturator: Fix skipping of tests when partially offscreen.
-rw-r--r--texturator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/texturator.c b/texturator.c
index 555f81f..ba639e7 100644
--- a/texturator.c
+++ b/texturator.c
@@ -649,7 +649,7 @@ static bool check_quads(void)
int rx = x * zoom;
int ry = y * zoom;
- if ((rx >= gbm->width) || (ry >= gbm->height))
+ if ((rx + w * zoom >= gbm->width) || (ry + h * zoom >= gbm->height))
continue;
err |= probe_pix(rx, ry, w*zoom, h*zoom, s, m);