diff --git a/src/demo/all.c b/src/demo/all.c index 97f727d7c..09ad481a4 100644 --- a/src/demo/all.c +++ b/src/demo/all.c @@ -30,7 +30,7 @@ allglyphs(struct notcurses* nc, struct ncplane* column, int legendy){ if(wc >= 0xd800 && wc <= 0xdfff){ continue; } - if(uc_bidi_category(wc)){ + if(uc_bidi_category(wc)){ // FIXME continue; } if(wcwidth(w[0]) >= 1){ @@ -38,11 +38,11 @@ allglyphs(struct notcurses* nc, struct ncplane* column, int legendy){ if(ncplane_putwegc(column, w, NULL) < 0){ return -1; } - if(ncplane_printf_aligned(std, legendy, NCALIGN_CENTER, "0x%06x", wc) < 0){ - return -1; - } ncplane_cursor_yx(column, NULL, &x); if(x >= dimx){ + if(ncplane_printf_aligned(std, legendy, NCALIGN_CENTER, "0x%06x", wc) < 0){ + return -1; + } DEMO_RENDER(nc); ncplane_set_fg_rgb(column, random() % 192 + 64, diff --git a/src/demo/sliding.c b/src/demo/sliding.c index d5162c741..eeecdaf73 100644 --- a/src/demo/sliding.c +++ b/src/demo/sliding.c @@ -135,9 +135,7 @@ draw_bounding_box(struct ncplane* n, int yoff, int xoff, int chunky, int chunkx) return ret; } -// break whatever's on the screen into panels and shift them around like a -// sliding puzzle. FIXME once we have copying, anyway. until then, just use -// background colors. +// make a bunch of boxes with gradients and use them to play a sliding puzzle. int sliding_puzzle_demo(struct notcurses* nc){ int ret = -1, z; int maxx, maxy;