mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
allglpyhs: don't do pointless header updates
This commit is contained in:
parent
24e457ace2
commit
37d1464d6f
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user