summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 1d9b4b2..c4ceb7c 100644
--- a/vis.c
+++ b/vis.c
@@ -597,6 +597,8 @@ lmb(void)
p₂ = Pt2(p.x, p.y, 1);
p₂ = rframexform(p₂, *maincam->view);
p = Pt(p₂.x, p₂.y);
+ if(!ptinrect(p, maincam->view->r))
+ return;
qlock(maincam->view->fbctl);
fb = maincam->view->getfb(maincam->view);
c = ul2col(fb->cb[p.y*Dx(fb->r) + p.x]);