highcon: make text orderly

This commit is contained in:
nick black 2020-02-10 15:24:58 -05:00
parent 74b9690cf3
commit 093b4aa730
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -88,7 +88,7 @@ int highcontrast_demo(struct notcurses* nc){
do{
unsigned idx = iter % totcells; // first color for upper-left
for(int yx = 0 ; yx < dimy * dimx ; ++yx){
cell_load_simple(n, &c, motto[idx % strlen(motto)]);
cell_load_simple(n, &c, motto[yx % strlen(motto)]);
cell_set_bg(&c, scrcolors[idx]);
if(ncplane_putc_yx(n, yx / dimx, yx % dimx, &c) < 0){
goto err;