mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
pool_release: always reset gcluster #980
This commit is contained in:
parent
857e22562c
commit
d2666a8584
@ -590,8 +590,8 @@ static inline void
|
||||
pool_release(egcpool* pool, cell* c){
|
||||
if(!cell_simple_p(c)){
|
||||
egcpool_release(pool, cell_egc_idx(c));
|
||||
c->gcluster = 0; // don't subject ourselves to double-release problems
|
||||
}
|
||||
c->gcluster = 0; // don't subject ourselves to double-release problems
|
||||
}
|
||||
|
||||
// set the cell 'c' to point into the egcpool at location 'eoffset'
|
||||
|
@ -1388,7 +1388,7 @@ ncplane_put(ncplane* n, int y, int x, const char* egc, int cols,
|
||||
if(cell_load_direct(n, targ, egc, bytes, cols) < 0){
|
||||
return -1;
|
||||
}
|
||||
//fprintf(stderr, "%08x %d %d\n", targ->gcluster, bytes, cols);
|
||||
//fprintf(stderr, "%08x %016lx %c %d %d\n", targ->gcluster, targ->channels, cell_double_wide_p(targ) ? 'D' : 'd', bytes, cols);
|
||||
if(cols > 1){ // must set our right wide, and check for further damage
|
||||
cell* candidate = &n->fb[nfbcellidx(n, n->y, n->x + 1)];
|
||||
if(cell_wide_left_p(candidate)){
|
||||
|
Loading…
Reference in New Issue
Block a user