mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
boxdemo: adapt to menu
This commit is contained in:
parent
501fe166e4
commit
006ee00142
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user