allglpyhs: don't do pointless header updates

This commit is contained in:
nick black 2020-08-15 22:41:44 -04:00
parent 24e457ace2
commit 37d1464d6f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 5 additions and 7 deletions

View File

@ -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,

View File

@ -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;