ncplane_putstr_yx(): kill useless cell prep and FIXME

pull/444/head
nick black 5 years ago committed by Nick Black
parent 0f12bcdb4c
commit 0ee1779e82

@ -1488,10 +1488,7 @@ int ncplane_putstr_yx(ncplane* n, int y, int x, const char* gclusters){
int ret = 0; int ret = 0;
// FIXME speed up this blissfully naive solution // FIXME speed up this blissfully naive solution
while(*gclusters){ while(*gclusters){
// FIXME can we not dispense with this cell, and print directly in? int wcs;
cell c;
memset(&c, 0, sizeof(c));
int wcs = cell_load(n, &c, gclusters);
int cols = ncplane_putegc_yx(n, y, x, gclusters, &wcs); int cols = ncplane_putegc_yx(n, y, x, gclusters, &wcs);
if(cols < 0){ if(cols < 0){
if(wcs < 0){ if(wcs < 0){

Loading…
Cancel
Save