[ncdirect] honor xoff for bitmaps #1436

pull/1466/head
nick black 3 years ago
parent 83af07546d
commit 00634eb982
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -380,6 +380,11 @@ ncdirect_dump_plane(ncdirect* n, const ncplane* np, int xoff){
int dimy, dimx;
ncplane_dim_yx(np, &dimy, &dimx);
if(np->sprite){
if(xoff){
if(ncdirect_cursor_move_yx(n, -1, xoff)){
return -1;
}
}
if(ncfputs(np->sprite->glyph, n->ttyfp) == EOF){
return -1;
}

Loading…
Cancel
Save