summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);