From 37d1464d6fe6745fce617d88b949be93d59806db Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 15 Aug 2020 22:41:44 -0400 Subject: [PATCH] allglpyhs: don't do pointless header updates --- src/demo/all.c | 8 ++++---- src/demo/sliding.c | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) 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;