demo: remove some unused vars

pull/587/head
nick black 4 years ago
parent ee196c299d
commit a8b3780c21
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -229,7 +229,6 @@ int unicodeblocks_demo(struct notcurses* nc){
}
// for a 32-bit wchar_t, we would want up through 24 bits of block ID. but
// really, the vast majority of space is unused.
blockstart += BLOCKSIZE;
}
ncplane_destroy(header);
return 0;

@ -31,11 +31,11 @@ perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused)),
static int startg = 0xaf;
static int startb = 0x84;
static int frameno = 0;
int dimx, dimy, y;
int dimx, dimy;
struct ncplane* n = *(struct ncplane**)vnewplane;
if(n == NULL){
notcurses_term_dim_yx(nc, &dimy, &dimx);
y = dimy - sizeof(leg) / sizeof(*leg);
int y = dimy - sizeof(leg) / sizeof(*leg);
n = ncplane_new(nc, sizeof(leg) / sizeof(*leg), dimx, y, 0, NULL);
if(n == NULL){
return -1;
@ -75,7 +75,7 @@ perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused)),
x = 0;
}
ncplane_set_bg_alpha(n, CELL_ALPHA_BLEND);
for(size_t l = 0 ; l < sizeof(leg) / sizeof(*leg) ; ++l, ++y){
for(size_t l = 0 ; l < sizeof(leg) / sizeof(*leg) ; ++l){
ncplane_set_fg_rgb_clipped(n, r + 0x8 * l, g + 0x8 * l, b + 0x8 * l);
if(ncplane_set_bg_rgb(n, (l + 1) * 0x2, 0x20, (l + 1) * 0x2)){
return -1;

Loading…
Cancel
Save