draw multi-type cell contents correctly

As long as it's not too long for the space! But the curses draw function
that knows how to measure the length-in-bytes of a multi-byte string
doesn't seem to be available to me. So pass -1 as the length and it'll
draw correctly out to the NULL terminator.
This commit is contained in:
Eric House 2020-01-24 21:57:35 -08:00
parent b96c9cc438
commit b78ad28d0e

View file

@ -382,7 +382,7 @@ curses_draw_drawCell( DrawCtx* p_dctx, const XP_Rect* rect,
} /* switch */
}
mvwaddnstr( dctx->boardWin, rect->top, rect->left, loc, rect->width );
mvwaddnstr( dctx->boardWin, rect->top, rect->left, loc, -1 );
if ( highlight ) {
wstandend( dctx->boardWin );