commit 7764da9b07dd6cb206fe2bdd6160fa19dc6d8b2c parent dfe617304abae3ac888fcf57400239da9106ee29 Author: hhvn <dev@hhvn.uk> Date: Sun, 15 Jan 2023 22:18:57 +0000 Assert pane geometry is rectangular Diffstat:
M | src/pane.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/pane.c b/src/pane.c @@ -9,6 +9,7 @@ static Pane *pane = NULL; void pane_begin(Pane *p) { p->max = 0; + assert(p->geom->type == UI_RECT); BeginScissorMode(p->geom->x, p->geom->y, p->geom->w, p->geom->h); pane = p;