From 006ee00142f9ff7c28b8eae91b070779586af146 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 9 Feb 2020 06:15:21 -0500 Subject: [PATCH] boxdemo: adapt to menu --- src/demo/boxdemo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/demo/boxdemo.c b/src/demo/boxdemo.c index 4e1b02e59..5f93a7a35 100644 --- a/src/demo/boxdemo.c +++ b/src/demo/boxdemo.c @@ -51,8 +51,9 @@ int box_demo(struct notcurses* nc){ return -1; } for(int idx = 0 ; idx < 256 ; ++idx){ - int y = 0, x = 0; + int y = 1, x = 0; ncplane_dim_yx(n, &ylen, &xlen); + --ylen; while(ylen - y >= targy && xlen - x >= targx){ if(cell_set_fg_rgb(&ul, idx, 255 - (y * 2), 255 - idx)){ return -1;