ref: 05e63a30ce73bbb09b60cd7943e34145351f9055
parent: 178db63ff74f35a845758b69399bcb257d77468f
author: rodri <[email protected]>
date: Mon Jul 15 16:07:55 EDT 2024
vis: don't allow peeking outside the framebuffer.
--- a/vis.c
+++ b/vis.c
@@ -597,6 +597,8 @@
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]);