mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
ncplane_putc_yx(): abstract to ncplane_cell_ref_yx()
This commit is contained in:
parent
c0b2a64102
commit
4951a6876c
@ -1261,7 +1261,7 @@ int ncplane_putc_yx(ncplane* n, int y, int x, const cell* c){
|
||||
// that cell as wide). Any character placed atop one half of a wide character
|
||||
// obliterates the other half. Note that a wide char can thus obliterate two
|
||||
// wide chars, totalling four columns.
|
||||
cell* targ = &n->fb[nfbcellidx(n, n->y, n->x)];
|
||||
cell* targ = ncplane_cell_ref_yx(n, n->y, n->x);
|
||||
if(n->x > 0){
|
||||
if(cell_double_wide_p(targ)){ // replaced cell is half of a wide char
|
||||
if(targ->gcluster == 0){ // we're the right half
|
||||
|
Loading…
Reference in New Issue
Block a user